diff --git a/setup.cfg b/setup.cfg index 36bcbfff..61023b42 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,3 +3,4 @@ test = pytest [tool:pytest] addopts = --cov=ahriman --cov-report term-missing:skip-covered --pspec +asyncio_mode = auto diff --git a/tests/ahriman/web/views/conftest.py b/tests/ahriman/web/views/conftest.py index 0ced73e5..2bc0b191 100644 --- a/tests/ahriman/web/views/conftest.py +++ b/tests/ahriman/web/views/conftest.py @@ -2,7 +2,8 @@ import pytest from aiohttp import web from asyncio import BaseEventLoop -from pytest_aiohttp import TestClient + +from aiohttp.test_utils import TestClient from pytest_mock import MockerFixture from typing import Any diff --git a/tests/ahriman/web/views/status/test_views_status_package.py b/tests/ahriman/web/views/status/test_views_status_package.py index dcbc91b2..73656725 100644 --- a/tests/ahriman/web/views/status/test_views_status_package.py +++ b/tests/ahriman/web/views/status/test_views_status_package.py @@ -1,6 +1,6 @@ import pytest -from pytest_aiohttp import TestClient +from aiohttp.test_utils import TestClient from ahriman.models.build_status import BuildStatus, BuildStatusEnum from ahriman.models.package import Package diff --git a/tests/ahriman/web/views/status/test_views_status_packages.py b/tests/ahriman/web/views/status/test_views_status_packages.py index 2533dc64..363f0124 100644 --- a/tests/ahriman/web/views/status/test_views_status_packages.py +++ b/tests/ahriman/web/views/status/test_views_status_packages.py @@ -1,6 +1,6 @@ import pytest -from pytest_aiohttp import TestClient +from aiohttp.test_utils import TestClient from pytest_mock import MockerFixture from ahriman.models.build_status import BuildStatusEnum diff --git a/tests/ahriman/web/views/status/test_views_status_status.py b/tests/ahriman/web/views/status/test_views_status_status.py index 4f9ac081..ef0f3735 100644 --- a/tests/ahriman/web/views/status/test_views_status_status.py +++ b/tests/ahriman/web/views/status/test_views_status_status.py @@ -1,6 +1,6 @@ import pytest -from pytest_aiohttp import TestClient +from aiohttp.test_utils import TestClient import ahriman.version as version diff --git a/tests/ahriman/web/views/test_views_index.py b/tests/ahriman/web/views/test_views_index.py index ede356f6..1cdc4558 100644 --- a/tests/ahriman/web/views/test_views_index.py +++ b/tests/ahriman/web/views/test_views_index.py @@ -1,6 +1,6 @@ import pytest -from pytest_aiohttp import TestClient +from aiohttp.test_utils import TestClient from ahriman.models.user_access import UserAccess from ahriman.web.views.index import IndexView