Skip to content

Commit d17b6d7

Browse files
committed
Fixed a refacotring error in the docs. This fixes pallets#100
1 parent c900256 commit d17b6d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ In order to test that, we add a second module (
4343
class FlaskrTestCase(unittest.TestCase):
4444

4545
def setUp(self):
46-
self.db_fd, flaskr.DATABASE = tempfile.mkstemp()
46+
self.db_fd, self.app.config['DATABASE'] = tempfile.mkstemp()
4747
self.app = flaskr.app.test_client()
4848
flaskr.init_db()
4949

5050
def tearDown(self):
5151
os.close(self.db_fd)
52-
os.unlink(flaskr.DATABASE)
52+
os.unlink(flaskr.app.config['DATABASE'])
5353

5454
if __name__ == '__main__':
5555
unittest.main()

0 commit comments

Comments
 (0)