diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-04-09 20:23:30 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-04-09 20:23:30 -0700 |
| commit | b59e75fd9fd3a6f1a552ee13bbb734aa9ef65f6c (patch) | |
| tree | 8ca0b94d7754cf7525f6a04a29d9839478325e18 /docs/tutorials/wiki2/src | |
| parent | f5a9a54e4840be21be9adf365ba15f53267c453c (diff) | |
| download | pyramid-b59e75fd9fd3a6f1a552ee13bbb734aa9ef65f6c.tar.gz pyramid-b59e75fd9fd3a6f1a552ee13bbb734aa9ef65f6c.tar.bz2 pyramid-b59e75fd9fd3a6f1a552ee13bbb734aa9ef65f6c.zip | |
use an alias for the import. Fixes #2450. Thanks @bertjwregeer!
Diffstat (limited to 'docs/tutorials/wiki2/src')
| -rw-r--r-- | docs/tutorials/wiki2/src/tests/tutorial/tests/test_functional.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/src/tests/tutorial/tests/test_functional.py b/docs/tutorials/wiki2/src/tests/tutorial/tests/test_functional.py index b2c6e0975..77bfd2f17 100644 --- a/docs/tutorials/wiki2/src/tests/tutorial/tests/test_functional.py +++ b/docs/tutorials/wiki2/src/tests/tutorial/tests/test_functional.py @@ -1,6 +1,6 @@ import transaction import unittest -from webtest import TestApp +from webtest import TestApp as WebtestApp class FunctionalTests(unittest.TestCase): @@ -30,7 +30,7 @@ class FunctionalTests(unittest.TestCase): 'auth.secret': 'seekrit', } app = main({}, **settings) - cls.testapp = TestApp(app) + cls.testapp = WebtestApp(app) session_factory = app.registry['dbsession_factory'] cls.engine = session_factory.kw['bind'] |
