Merge pull request #2318 from bovarysme/fix-testing-docs

Fix a small oversight in the testing docs
This commit is contained in:
David Lord 2017-05-23 13:31:56 -07:00 committed by GitHub
commit 81c2440a05
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()

View File

@ -16,7 +16,7 @@ from flaskr import flaskr
@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()