Browse Source

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

Fix a small oversight in the testing docs
pull/2320/head
David Lord 7 years ago committed by GitHub
parent
commit
81c2440a05
  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