changeset 6603:fd9b2d83d52b

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
author domruf <dominikruf@gmail.com>
date Wed, 12 Apr 2017 18:30:23 +0200
parents 2cf6d49b6073
children f89dba9ea7c7
files kallithea/tests/other/manual_test_vcs_operations.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/other/manual_test_vcs_operations.py	Sat Apr 15 14:10:39 2017 +0200
+++ b/kallithea/tests/other/manual_test_vcs_operations.py	Wed Apr 12 18:30:23 2017 +0200
@@ -36,6 +36,7 @@
 import re
 import tempfile
 import time
+import pytest
 
 from tempfile import _RandomNameSequence
 from subprocess import Popen, PIPE
@@ -179,6 +180,7 @@
     assert 'master -> master' in stderr
 
 
+@pytest.mark.usefixtures("test_context_fixture")
 class TestVCSOperations(TestController):
 
     @classmethod