diff --git a/kallithea/tests/functional/test_pullrequests.py b/kallithea/tests/functional/test_pullrequests.py --- a/kallithea/tests/functional/test_pullrequests.py +++ b/kallithea/tests/functional/test_pullrequests.py @@ -1,4 +1,7 @@ import re +import pytest + +from kallithea.tests.test_context import test_context from kallithea.tests.base import * from kallithea.tests.fixture import Fixture @@ -207,6 +210,12 @@ class TestPullrequestsController(TestCon class TestPullrequestsGetRepoRefs(TestController): + # this tests need test_context in addition to app_fixture + @pytest.fixture(autouse=True) + def app_test_context_fixture(self, app_fixture): + with test_context(self.app): + yield + def setup_method(self, method): self.repo_name = u'main' repo = fixture.create_repo(self.repo_name, repo_type='hg')