Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency flake8-pytest-style to v2 #15

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ flake8 = "^7.0.0"
flake8-debugger = "^4.1.2"
flake8-isort = "^6.0.0"
flake8-print = "^5.0.0"
flake8-pytest-style = "^1.6.0"
flake8-pytest-style = "^2.0.0"
flake8-quotes = "^3.3.2"
isort = "^5.11.4"
mypy = "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion pytest_aiohttp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def request(
return result


@pytest.fixture()
@pytest.fixture
async def api(
aiohttp_client: typing.Callable[[Application], typing.Awaitable[TestClient]],
aiohttp_app: Application,
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
_T = tuple[Application, _STATE_T]


@pytest.fixture()
@pytest.fixture
def setup() -> _T:
state: _STATE_T = {}

Expand Down Expand Up @@ -43,11 +43,11 @@ async def json_handler(request: Request) -> Response:
return app, state


@pytest.fixture()
@pytest.fixture
def aiohttp_app(setup: _T) -> Application:
return setup[0]


@pytest.fixture()
@pytest.fixture
def req(setup: _T) -> _STATE_T:
return setup[1]