Browse Source

Fix a small oversight in the testing docs

pull/2318/head
bovarysme 7 years ago
parent
commit
fe27d04cc1
  1. 2
      docs/testing.rst
  2. 2
      examples/flaskr/tests/test_flaskr.py

2
docs/testing.rst

@ -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()

2
examples/flaskr/tests/test_flaskr.py

@ -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()

Loading…
Cancel
Save