# HG changeset patch # User domruf # Date 2017-04-12 18:30:23 # Node ID fd9b2d83d52b6dfb6f4c0754aecbc6589b45cd45 # Parent 2cf6d49b6073621299eef8f6e522cb3a2e745414 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 diff --git a/kallithea/tests/other/manual_test_vcs_operations.py b/kallithea/tests/other/manual_test_vcs_operations.py --- a/kallithea/tests/other/manual_test_vcs_operations.py +++ b/kallithea/tests/other/manual_test_vcs_operations.py @@ -36,6 +36,7 @@ import os import re import tempfile import time +import pytest from tempfile import _RandomNameSequence from subprocess import Popen, PIPE @@ -179,6 +180,7 @@ def _check_proper_git_push(stdout, stder assert 'master -> master' in stderr +@pytest.mark.usefixtures("test_context_fixture") class TestVCSOperations(TestController): @classmethod