Permalink
Browse files

Fixed a refacotring error in the docs. This fixes #100

  • Loading branch information...
1 parent c900256 commit d17b6d738a0e9f8a3dcf4996a65de6e3347acae6 @mitsuhiko mitsuhiko committed Aug 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/testing.rst
View
@@ -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()

0 comments on commit d17b6d7

Please sign in to comment.