diff options
| author | Michael Merickel <michael@merickel.org> | 2015-06-01 17:26:28 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2015-06-01 17:26:28 -0500 |
| commit | c1dbb5092d486df5d7fbad8e52cd1dbcc2c834d9 (patch) | |
| tree | 9e7452b3ffdc8d4f30739cfc9d898169d6719206 /docs/quick_tutorial/databases/tutorial | |
| parent | a613f28670b8d5a63ad182507e3fb7634bb86560 (diff) | |
| parent | 8b334a33d3ab8904b04ff98a62a529e31cdcf162 (diff) | |
| download | pyramid-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.py | 6 |
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) |
