Changeset - fd9b2d83d52b
[Not reviewed]
default
0 1 0
domruf - 9 years ago 2017-04-12 18:30:23
dominikruf@gmail.com
tests: add context fixture to fix test_ip_restriction_hg/git

test_ip_restriction_hg/git needs the test context fixture or otherwise
localization in form validation fails with:

TypeError: No object (name: context) has been registered for this thread
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/manual_test_vcs_operations.py
Show inline comments
 
@@ -33,12 +33,13 @@ Original author and date, and relevant c
 
"""
 

	
 
import os
 
import re
 
import tempfile
 
import time
 
import pytest
 

	
 
from tempfile import _RandomNameSequence
 
from subprocess import Popen, PIPE
 

	
 
from kallithea.tests.base import *
 
from kallithea.tests.fixture import Fixture
 
@@ -176,12 +177,13 @@ def _check_proper_git_push(stdout, stder
 
    assert 'fatal' not in stderr
 
    assert 'rejected' not in stderr
 
    assert 'Pushing to' in stderr
 
    assert 'master -> master' in stderr
 

	
 

	
 
@pytest.mark.usefixtures("test_context_fixture")
 
class TestVCSOperations(TestController):
 

	
 
    @classmethod
 
    def setup_class(cls):
 
        #DISABLE ANONYMOUS ACCESS
 
        set_anonymous_access(False)
0 comments (0 inline, 0 general)