Skip to content

Commit

Permalink
Use session-scoped app fixture in example
Browse files Browse the repository at this point in the history
As #117 shows, it is indeed confusing now that the default `live_server` is session-scoped.
  • Loading branch information
nicoddemus authored Mar 9, 2020
1 parent d701554 commit ba8b83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Extension provides some sugar for your tests, such as:
'''What is the meaning of life, the universe and everything?'''
return 42
@pytest.fixture
@pytest.fixture(scope="session")
def app():
app = create_app()
app.response_class = MyResponse
Expand Down

0 comments on commit ba8b83f

Please sign in to comment.