diff options
| author | Michael Merickel <michael@merickel.org> | 2016-02-08 22:37:22 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-02-08 23:04:30 -0600 |
| commit | d6a758e58ef1c4782ecd3fe53c8563284f2496ca (patch) | |
| tree | f3472666bb1ad26d7adcc0b6c5501b05d863308d /docs/tutorials/wiki2/src/tests | |
| parent | ed218d3c850143f1750f43be3879c6bfcca3d872 (diff) | |
| download | pyramid-d6a758e58ef1c4782ecd3fe53c8563284f2496ca.tar.gz pyramid-d6a758e58ef1c4782ecd3fe53c8563284f2496ca.tar.bz2 pyramid-d6a758e58ef1c4782ecd3fe53c8563284f2496ca.zip | |
fix tests to get the bind from dbsession_factory properly
Diffstat (limited to 'docs/tutorials/wiki2/src/tests')
| -rw-r--r-- | docs/tutorials/wiki2/src/tests/tutorial/tests/test_views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials/wiki2/src/tests/tutorial/tests/test_views.py b/docs/tutorials/wiki2/src/tests/tutorial/tests/test_views.py index 81d84fa30..b2830d070 100644 --- a/docs/tutorials/wiki2/src/tests/tutorial/tests/test_views.py +++ b/docs/tutorials/wiki2/src/tests/tutorial/tests/test_views.py @@ -31,7 +31,7 @@ class BaseTest(unittest.TestCase): def init_database(self): from ..models.meta import Base session_factory = self.config.registry['dbsession_factory'] - engine = session_factory.get_bind() + engine = session_factory.kw['bind'] Base.metadata.create_all(engine) def tearDown(self): |
