mirror of https://github.com/pallets/flask.git
Merge pull request #2318 from bovarysme/fix-testing-docs
Fix a small oversight in the testing docs
This commit is contained in:
commit
81c2440a05
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue