Skip to content

Commit

Permalink
tests: remove pytest-flask dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 14, 2023
1 parent 02a7e84 commit 3b46d6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
23 changes: 2 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ pre-commit = "*"
pyquery = "*"
pytest = "*"
pytest-coverage = "*"
pytest-flask = "==1.3.0"
pytest-httpserver = "*"
pytest-lazy-fixture = "==0.6.3"
pytest-xdist = "^3.3.1"
Expand Down
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def configuration(smtpd):

@pytest.fixture
def app(configuration, backend):
return create_app(configuration, backend=backend)
app = create_app(configuration, backend=backend)
with app.test_request_context():
yield app


@pytest.fixture
Expand Down

0 comments on commit 3b46d6a

Please sign in to comment.