Browse Source

Fixed testing example

pull/112/head
Armin Ronacher 14 years ago
parent
commit
0566abc28d
  1. 2
      docs/testing.rst

2
docs/testing.rst

@ -43,7 +43,7 @@ In order to test that, we add a second module (
class FlaskrTestCase(unittest.TestCase):
def setUp(self):
self.db_fd, self.app.config['DATABASE'] = tempfile.mkstemp()
self.db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()
self.app = flaskr.app.test_client()
flaskr.init_db()

Loading…
Cancel
Save