From dd3cc81f75dcb5ff96e0751653071722a15f46c2 Mon Sep 17 00:00:00 2001 From: Michael Merickel <michael@merickel.org> Date: Mon, 15 Oct 2018 06:46:11 +0200 Subject: [PATCH] fix the tests to import from the tests package instead of pyramid.tests --- tests/test_csrf.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_csrf.py b/tests/test_csrf.py index 234d443..a224d92 100644 --- a/tests/test_csrf.py +++ b/tests/test_csrf.py @@ -239,7 +239,7 @@ self.config.set_default_csrf_options(require_csrf=False) def _callFUT(self, *args, **kwargs): - from ..csrf import check_csrf_token + from pyramid.csrf import check_csrf_token return check_csrf_token(*args, **kwargs) def test_success_token(self): @@ -281,7 +281,7 @@ self.config = testing.setUp() def _callFUT(self, *args, **kwargs): - from ..csrf import check_csrf_token + from pyramid.csrf import check_csrf_token return check_csrf_token(*args, **kwargs) def test_success_token(self): @@ -304,7 +304,7 @@ class Test_check_csrf_origin(unittest.TestCase): def _callFUT(self, *args, **kwargs): - from ..csrf import check_csrf_origin + from pyramid.csrf import check_csrf_origin return check_csrf_origin(*args, **kwargs) def test_success_with_http(self): -- Gitblit v1.9.3