Skip to content

Commit 0566abc

Browse files
committed
Fixed testing example
1 parent a3f78af commit 0566abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/testing.rst

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

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

0 commit comments

Comments
 (0)