From d17b6d738a0e9f8a3dcf4996a65de6e3347acae6 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 3 Aug 2010 12:17:36 +0200 Subject: [PATCH] Fixed a refacotring error in the docs. This fixes #100 --- docs/testing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/testing.rst b/docs/testing.rst index d131c673..1a3a2960 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -43,13 +43,13 @@ In order to test that, we add a second module ( class FlaskrTestCase(unittest.TestCase): def setUp(self): - self.db_fd, flaskr.DATABASE = tempfile.mkstemp() + self.db_fd, self.app.config['DATABASE'] = tempfile.mkstemp() self.app = flaskr.app.test_client() flaskr.init_db() def tearDown(self): os.close(self.db_fd) - os.unlink(flaskr.DATABASE) + os.unlink(flaskr.app.config['DATABASE']) if __name__ == '__main__': unittest.main()