Mention the TESTING flag in the docs
This commit is contained in:
parent
d62e277dfe
commit
7e55b5084d
2 changed files with 23 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue