summaryrefslogtreecommitdiff
path: root/tests/test_csrf.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-14 23:16:48 -0500
committerMichael Merickel <michael@merickel.org>2018-10-14 23:46:11 -0500
commitdd3cc81f75dcb5ff96e0751653071722a15f46c2 (patch)
tree7cfd6140211a21dedd2ddfeb4aa77b7ff4339fa9 /tests/test_csrf.py
parenteadaee315eb142d1537d617da58343e3d7f1df0a (diff)
downloadpyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.tar.gz
pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.tar.bz2
pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.zip
fix the tests to import from the tests package instead of pyramid.tests
Diffstat (limited to 'tests/test_csrf.py')
-rw-r--r--tests/test_csrf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_csrf.py b/tests/test_csrf.py
index 234d4434c..a224d928f 100644
--- a/tests/test_csrf.py
+++ b/tests/test_csrf.py
@@ -239,7 +239,7 @@ class Test_check_csrf_token(unittest.TestCase):
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 @@ class Test_check_csrf_token_without_defaults_configured(unittest.TestCase):
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_token_without_defaults_configured(unittest.TestCase):
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):