summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/databases/tutorial
diff options
context:
space:
mode:
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):