Fix generating pytest for training service 3
This commit is contained in:
47
services/training/tests/pytest.ini
Normal file
47
services/training/tests/pytest.ini
Normal file
@@ -0,0 +1,47 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user