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:
@@ -2,6 +2,7 @@
|
||||
"""
|
||||
Тестовый скрипт для проверки модуля мониторинга сервера
|
||||
"""
|
||||
import pytest
|
||||
import asyncio
|
||||
import sys
|
||||
import os
|
||||
@@ -23,6 +24,7 @@ class MockBot:
|
||||
print(f"{'='*60}\n")
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_monitor():
|
||||
"""Тестирование модуля мониторинга"""
|
||||
print("🧪 Тестирование модуля мониторинга сервера")
|
||||
|
||||
Reference in New Issue
Block a user