forked from orbit-oss/flask
Fix a small oversight in the testing docs
This commit is contained in:
parent
ce813ae521
commit
fe27d04cc1
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue