summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/databases/tutorial
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2015-06-01 17:26:28 -0500
committerMichael Merickel <michael@merickel.org>2015-06-01 17:26:28 -0500
commitc1dbb5092d486df5d7fbad8e52cd1dbcc2c834d9 (patch)
tree9e7452b3ffdc8d4f30739cfc9d898169d6719206 /docs/quick_tutorial/databases/tutorial
parenta613f28670b8d5a63ad182507e3fb7634bb86560 (diff)
parent8b334a33d3ab8904b04ff98a62a529e31cdcf162 (diff)
downloadpyramid-c1dbb5092d486df5d7fbad8e52cd1dbcc2c834d9.tar.gz
pyramid-c1dbb5092d486df5d7fbad8e52cd1dbcc2c834d9.tar.bz2
pyramid-c1dbb5092d486df5d7fbad8e52cd1dbcc2c834d9.zip
Merge pull request #1823 from kilodalton/fixQuickTutorialDatabases
Quick Tutorial Database: Logging configs for db script output + fix scoped session warning
Diffstat (limited to 'docs/quick_tutorial/databases/tutorial')
-rw-r--r--docs/quick_tutorial/databases/tutorial/tests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/quick_tutorial/databases/tutorial/tests.py b/docs/quick_tutorial/databases/tutorial/tests.py
index e18e70c8c..11e747d15 100644
--- a/docs/quick_tutorial/databases/tutorial/tests.py
+++ b/docs/quick_tutorial/databases/tutorial/tests.py
@@ -40,16 +40,14 @@ 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')
from webtest import TestApp
self.testapp = TestApp(app)
def tearDown(self):
- self.session.remove()
- testing.tearDown()
+ from .models import DBSession
+ DBSession.remove()
def test_it(self):
res = self.testapp.get('/', status=200)