Skip to content
Myr

Added missing testing config

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #1302

authored by accraze · committed by David Lord · parent 7005c2d · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:docs/testing.rst+3 added-1 removed
96 unmodified lines
97 class FlaskrTestCase(unittest.TestCase):9899 def setUp(self):100 self.db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()101 flaskr.app.config['TESTING'] = True102 self.app = flaskr.app.test_client()103 with flaskr.app.app_context():102 flaskr.init_db()104 flaskr.init_db()105106 def tearDown(self):107 os.close(self.db_fd)108 os.unlink(flaskr.app.config['DATABASE'])
249 unmodified lines