2025-05-24 13:31:31 +02:00

23 lines
820 B
INI

[tool:pytest]
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
markers =
asyncio: marks tests as async (deselect with '-m "not asyncio"')
integration: marks tests as integration tests requiring real database (deselect with '-m "not integration"')
e2e: marks tests as end-to-end tests covering complete workflows (deselect with '-m "not e2e"')
unit: marks tests as unit tests using mocks (default)
# Test configuration
# To run unit tests only: pytest -m "not integration and not e2e"
# To run integration tests: pytest -m integration
# To run e2e tests: pytest -m e2e
# To run all tests: pytest