- 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.
25 lines
680 B
TOML
25 lines
680 B
TOML
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = [
|
|
"-v",
|
|
"--tb=short",
|
|
"--strict-markers",
|
|
"--disable-warnings",
|
|
"--asyncio-mode=auto"
|
|
]
|
|
asyncio_default_fixture = "event_loop"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
markers = [
|
|
"asyncio: marks tests as async (deselect with '-m \"not asyncio\"')",
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"integration: marks tests as integration tests",
|
|
"unit: marks tests as unit tests"
|
|
]
|
|
filterwarnings = [
|
|
"ignore::DeprecationWarning",
|
|
"ignore::PendingDeprecationWarning"
|
|
]
|