Skip to content

Commit f1280db

Browse files
committed
Удалена фикстура aiohttp_mp. Решено отказаться от aioressponses в пользу mocker, потому чтоэта библиотека не совместима с последними версиями aiohttp (==3.14.1)
1 parent 4a04c1f commit f1280db

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

tests/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import pytest
88
from _pytest.monkeypatch import MonkeyPatch
9-
from aioresponses import aioresponses
109
from alembic import command
1110
from alembic.config import Config as AlembicConfig
1211
from fastapi.testclient import TestClient
@@ -44,13 +43,6 @@ def session_mp():
4443
mp.undo()
4544

4645

47-
@pytest.fixture
48-
def aiohttp_mp():
49-
"""Фикстура для перехвата любых aiohttp запросов aiohttp.ClientSession()"""
50-
with aioresponses() as aiohttp_mock:
51-
yield aiohttp_mock
52-
53-
5446
@pytest.fixture(scope='session')
5547
def get_settings_mock(session_mp):
5648
"""Переопределение get_settings в rating_api/settings.py и перезагрузка base.app."""

0 commit comments

Comments
 (0)