Skip to content

Commit

Permalink
Fixed some pytest warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed May 19, 2021
1 parent f64295f commit cecf7db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ def app():
return app


@pytest.yield_fixture
@pytest.fixture
def app_ctx(app):
with app.app_context() as ctx:
yield ctx


@pytest.yield_fixture
@pytest.fixture
def req_ctx(app):
with app.test_request_context() as ctx:
yield ctx
Expand Down
2 changes: 1 addition & 1 deletion tests/test_recaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def app(app):
return app


@pytest.yield_fixture(autouse=True)
@pytest.fixture(autouse=True)
def req_ctx(app):
with app.test_request_context(
data={'g-recaptcha-response': 'pass'}
Expand Down

0 comments on commit cecf7db

Please sign in to comment.