From 608f955e20723723f33750211bb12debf613819b Mon Sep 17 00:00:00 2001
From: Karen Dalton <kd@karend.net>
Date: Mon, 01 Jun 2015 21:54:43 +0200
Subject: [PATCH] Add additional logging configs necessary for db script output and update tests.py to fix the 'At least one scoped session' warning

---
 docs/quick_tutorial/databases/tutorial/tests.py |    4 ++--
 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 e18e70c..1e08ef7 100644
--- a/docs/quick_tutorial/databases/tutorial/tests.py
+++ b/docs/quick_tutorial/databases/tutorial/tests.py
@@ -40,7 +40,6 @@
 
 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 @@
         self.testapp = TestApp(app)
 
     def tearDown(self):
-        self.session.remove()
+        from .models import DBSession
+        DBSession.remove()
         testing.tearDown()
 
     def test_it(self):

--
Gitblit v1.9.3