47 lines
1.1 KiB
INI
47 lines
1.1 KiB
INI
# services/training/pytest.ini
|
|
[tool:pytest]
|
|
# Minimum pytest configuration for training service ML tests
|
|
|
|
# Test discovery
|
|
python_files = test_*.py *_test.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Test directories
|
|
testpaths = tests
|
|
|
|
# Markers
|
|
markers =
|
|
unit: Unit tests (fast, isolated)
|
|
integration: Integration tests (slower, with dependencies)
|
|
ml: Machine learning specific tests
|
|
slow: Slow-running tests
|
|
api: API endpoint tests
|
|
performance: Performance tests
|
|
|
|
# Asyncio configuration
|
|
asyncio_mode = auto
|
|
|
|
# Output configuration
|
|
addopts =
|
|
-v
|
|
--tb=short
|
|
--strict-markers
|
|
--disable-warnings
|
|
--color=yes
|
|
|
|
# Minimum Python version
|
|
minversion = 3.8
|
|
|
|
# Ignore certain warnings
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|
|
ignore::PendingDeprecationWarning
|
|
ignore::UserWarning:prophet.*
|
|
ignore::UserWarning:pandas.*
|
|
|
|
# Test timeout (in seconds)
|
|
timeout = 300
|
|
|
|
# Coverage (if pytest-cov is installed)
|
|
# addopts = -v --tb=short --strict-markers --disable-warnings --color=yes --cov=app --cov-report=term-missing |