summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/databases/tutorial
diff options
context:
space:
mode:
authorKaren Dalton <kd@karend.net>2015-06-01 12:54:43 -0700
committerKaren Dalton <kd@karend.net>2015-06-01 12:54:43 -0700
commit608f955e20723723f33750211bb12debf613819b (patch)
treec0a39d3de0fee987887d97b1ac7dbe053317918e /docs/quick_tutorial/databases/tutorial
parenta613f28670b8d5a63ad182507e3fb7634bb86560 (diff)
downloadpyramid-608f955e20723723f33750211bb12debf613819b.tar.gz
pyramid-608f955e20723723f33750211bb12debf613819b.tar.bz2
pyramid-608f955e20723723f33750211bb12debf613819b.zip
Add additional logging configs necessary for db script output and update tests.py to fix the 'At least one scoped session' warning
Diffstat (limited to 'docs/quick_tutorial/databases/tutorial')
-rw-r--r--docs/quick_tutorial/databases/tutorial/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/quick_tutorial/databases/tutorial/tests.py b/docs/quick_tutorial/databases/tutorial/tests.py
index e18e70c8c..1e08ef760 100644
--- a/docs/quick_tutorial/databases/tutorial/tests.py
+++ b/docs/quick_tutorial/databases/tutorial/tests.py
@@ -40,7 +40,6 @@ class WikiViewTests(unittest.TestCase):
class WikiFunctionalTests(unittest.TestCase):
def setUp(self):
- self.session = _initTestingDB()
self.config = testing.setUp()
from pyramid.paster import get_app
app = get_app('development.ini')
@@ -48,7 +47,8 @@ class WikiFunctionalTests(unittest.TestCase):
self.testapp = TestApp(app)
def tearDown(self):
- self.session.remove()
+ from .models import DBSession
+ DBSession.remove()
testing.tearDown()
def test_it(self):