Browse Source

Added missing testing config

fixes #1302
pull/2117/head
accraze 8 years ago committed by David Lord
parent
commit
1caa9de628
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 2
      docs/testing.rst

2
docs/testing.rst

@ -98,7 +98,9 @@ test method to our class, like this::
def setUp(self):
self.db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()
flaskr.app.config['TESTING'] = True
self.app = flaskr.app.test_client()
with flaskr.app.app_context():
flaskr.init_db()
def tearDown(self):

Loading…
Cancel
Save