summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/src/tests
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-02-08 22:37:22 -0600
committerMichael Merickel <michael@merickel.org>2016-02-08 23:04:30 -0600
commitd6a758e58ef1c4782ecd3fe53c8563284f2496ca (patch)
treef3472666bb1ad26d7adcc0b6c5501b05d863308d /docs/tutorials/wiki2/src/tests
parented218d3c850143f1750f43be3879c6bfcca3d872 (diff)
downloadpyramid-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.py2
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):