mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-30 08:06:07 +00:00
51 lines
1.1 KiB
INI
51 lines
1.1 KiB
INI
[pytest]
|
|
# Test discovery patterns
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Python path for imports
|
|
pythonpath = . tests
|
|
|
|
# Test paths
|
|
testpaths = tests
|
|
|
|
# Asyncio configuration
|
|
asyncio_mode = auto
|
|
|
|
# Resource leaks are often reported during object finalization and wrapped by
|
|
# pytest. Keep both forms fatal so --disable-warnings cannot hide them.
|
|
filterwarnings =
|
|
error::ResourceWarning
|
|
error::pytest.PytestUnraisableExceptionWarning
|
|
|
|
# Output options
|
|
addopts =
|
|
-v
|
|
--strict-markers
|
|
--tb=short
|
|
--disable-warnings
|
|
|
|
# Markers
|
|
markers =
|
|
asyncio: mark test as async
|
|
unit: mark test as unit test
|
|
integration: mark test as integration test
|
|
smoke: mark test as smoke test
|
|
slow: mark test as slow running
|
|
e2e: mark test as end-to-end test (requires real LangBot process)
|
|
|
|
# Coverage options (when using pytest-cov)
|
|
[coverage:run]
|
|
source = langbot
|
|
omit =
|
|
*/tests/*
|
|
*/test_*.py
|
|
*/__pycache__/*
|
|
*/site-packages/*
|
|
|
|
[coverage:report]
|
|
precision = 2
|
|
show_missing = True
|
|
skip_covered = False
|