Remove pytest configuration file and update test files for async compatibility
- Deleted `pytest.ini` to streamline test configuration. - Added `pytest_asyncio` plugin support in `conftest.py`. - Marked `test_monitor` as an async test to ensure proper execution in an asynchronous context.
This commit is contained in:
@@ -11,6 +11,9 @@ from database.db import BotDB
|
||||
# Импортируем моки в самом начале
|
||||
import tests.mocks
|
||||
|
||||
# Настройка pytest-asyncio
|
||||
pytest_plugins = ('pytest_asyncio',)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def event_loop():
|
||||
|
||||
Reference in New Issue
Block a user