Skip to content
Myr

Fix a small oversight in the testing docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by bovarysme · committed by bovarysme · parent ce813ae · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • tests:+1 added−1 removed
  • other:+1 added−1 removed

2 files+2 added−2 removed

modified:docs/testing.rst+1 added-1 removed
52 unmodified lines
53 from flaskr import flaskr545556 @pytest.fixture57 def client(request):57 def client():58 db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()59 flaskr.app.config['TESTING'] = True60 client = flaskr.app.test_client()61
316 unmodified lines
modified:examples/flaskr/tests/test_flaskr.py+1 added-1 removed
14 unmodified lines
15from flaskr import flaskr161718@pytest.fixture19def client(request):19def client():20 db_fd, flaskr.app.config['DATABASE'] = tempfile.mkstemp()21 flaskr.app.config['TESTING'] = True22 client = flaskr.app.test_client()23 with flaskr.app.app_context():
49 unmodified lines