We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c900256 commit d17b6d7Copy full SHA for d17b6d7
docs/testing.rst
@@ -43,13 +43,13 @@ In order to test that, we add a second module (
43
class FlaskrTestCase(unittest.TestCase):
44
45
def setUp(self):
46
- self.db_fd, flaskr.DATABASE = tempfile.mkstemp()
+ self.db_fd, self.app.config['DATABASE'] = tempfile.mkstemp()
47
self.app = flaskr.app.test_client()
48
flaskr.init_db()
49
50
def tearDown(self):
51
os.close(self.db_fd)
52
- os.unlink(flaskr.DATABASE)
+ os.unlink(flaskr.app.config['DATABASE'])
53
54
if __name__ == '__main__':
55
unittest.main()
0 commit comments