Mention the TESTING flag in the docs

This commit is contained in:
Armin Ronacher 2011-06-17 21:53:11 +02:00
parent d62e277dfe
commit 7e55b5084d
2 changed files with 23 additions and 2 deletions

View file

@ -19,6 +19,7 @@ class FlaskrTestCase(unittest.TestCase):
def setUp(self):
"""Before each test, set up a blank database"""
self.db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()
flaskr.app.config['TESTING'] = True
self.app = flaskr.app.test_client()
flaskr.init_db()