21 lines
684 B
INI
21 lines
684 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"')
|
|
unit: marks tests as unit tests using mocks (default)
|
|
|
|
# Integration test configuration
|
|
# To run integration tests: pytest -m integration
|
|
# To run only unit tests: pytest -m "not integration"
|
|
# To run all tests: pytest |