summaryrefslogtreecommitdiff
path: root/tests/test_viewderivers.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_viewderivers.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_viewderivers.py')
-rw-r--r--tests/test_viewderivers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_viewderivers.py b/tests/test_viewderivers.py
index 6b81cc1e5..69dcc7d08 100644
--- a/tests/test_viewderivers.py
+++ b/tests/test_viewderivers.py
@@ -47,7 +47,7 @@ class TestDeriveView(unittest.TestCase):
self.assertEqual(
e.args[0],
'Could not convert return value of the view callable function '
- 'pyramid.tests.test_viewderivers.view into a response '
+ 'tests.test_viewderivers.view into a response '
'object. The value returned was None. You may have forgotten '
'to return a value from the view callable.'
)
@@ -65,7 +65,7 @@ class TestDeriveView(unittest.TestCase):
self.assertEqual(
e.args[0],
"Could not convert return value of the view callable function "
- "pyramid.tests.test_viewderivers.view into a response "
+ "tests.test_viewderivers.view into a response "
"object. The value returned was {'a': 1}. You may have "
"forgotten to define a renderer in the view configuration."
)
@@ -85,7 +85,7 @@ class TestDeriveView(unittest.TestCase):
msg = e.args[0]
self.assertTrue(msg.startswith(
'Could not convert return value of the view callable object '
- '<pyramid.tests.test_viewderivers.'))
+ '<tests.test_viewderivers.'))
self.assertTrue(msg.endswith(
'> into a response object. The value returned was None. You '
'may have forgotten to return a value from the view callable.'))
@@ -129,7 +129,7 @@ class TestDeriveView(unittest.TestCase):
e.args[0],
'Could not convert return value of the view callable '
'method __call__ of '
- 'class pyramid.tests.test_viewderivers.AView into a '
+ 'class tests.test_viewderivers.AView into a '
'response object. The value returned was None. You may have '
'forgotten to return a value from the view callable.'
)
@@ -152,7 +152,7 @@ class TestDeriveView(unittest.TestCase):
e.args[0],
'Could not convert return value of the view callable '
'method theviewmethod of '
- 'class pyramid.tests.test_viewderivers.AView into a '
+ 'class tests.test_viewderivers.AView into a '
'response object. The value returned was None. You may have '
'forgotten to return a value from the view callable.'
)