Files
meshcore-bot/pytest.ini
T
agessaman 550a15e0d2 feat(web_viewer): bound packet_stream queue and requeue on flush failure
Add Web_Viewer.packet_stream_write_queue_max (default 1000), timed put
with flush retry on Full, flush lock, and re-queue rows after failed
batch insert. Document deferred PR #147 items. Reduce pytest cov
verbosity to term-only. Extend BotIntegration queue tests.
2026-04-16 19:02:33 -07:00

38 lines
919 B
INI

[pytest]
# Pytest configuration for meshcore-bot tests
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Async test support
asyncio_mode = auto
# Per-test timeout — prevents blocking I/O or infinite loops from hanging CI.
# Tests that legitimately need longer can use @pytest.mark.timeout(N).
timeout = 30
timeout_method = thread
# Coverage configuration (optional)
# [tool:pytest]
# addopts = --cov=modules --cov-report=html --cov-report=term-missing
# Output options
addopts =
-v
--tb=short
--strict-markers
--cov=modules
--cov-report=term
# Markers for test categorization
markers =
unit: Unit tests (isolated, with mocks)
integration: Integration tests (with real database)
slow: Slow running tests
mqtt: Live MQTT integration tests (require network access to letsmesh broker)