Fix a small oversight in the testing docs

This commit is contained in:
bovarysme 2017-05-23 22:22:16 +02:00
parent ce813ae521
commit fe27d04cc1
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ the application for testing and initializes a new database.::
@pytest.fixture
def client(request):
def client():
db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()
flaskr.app.config['TESTING'] = True
client = flaskr.app.test_client()