diff --git a/pyproject.toml b/pyproject.toml index 3f340d2..7d3fcb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/pytest_aiohttp_client.py b/pytest_aiohttp_client.py index 6ffc903..81fdf06 100644 --- a/pytest_aiohttp_client.py +++ b/pytest_aiohttp_client.py @@ -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, diff --git a/tests/conftest.py b/tests/conftest.py index a845714..42f6c43 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ _T = tuple[Application, _STATE_T] -@pytest.fixture() +@pytest.fixture def setup() -> _T: state: _STATE_T = {} @@ -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]