Files
LangBot/pytest.ini
T
BiFangKNT 810d053df9 fix(monitoring): persist session summaries to avoid history scans
- Maintain counts and display snapshots in source transactions with replay-safe deduplication.
- Read session lists exclusively from summaries and remove execution-only filters.
- Automatically initialize historical summaries in bounded, resumable batches during OSS startup.
- Add behavioral contracts covering accounting, retention, query cost and PostgreSQL concurrency.

Verified with the required session_summary suite and real container upgrade startup.
2026-10-20 06:12:00 +08:00

59 lines
1.5 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 =
contract(name): stable behavior obligation for required suites
postgres: required postgres execution suite
session_summary: required session summary boundary and accounting suite
local_agent: required local_agent execution suite
security: required security execution suite
compiled_cli: required compiled_cli execution suite
plugin_identity: required plugin_identity execution suite
seekdb: required seekdb execution suite
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