-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest-endpoints.ini
More file actions
77 lines (65 loc) · 1.81 KB
/
pytest-endpoints.ini
File metadata and controls
77 lines (65 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[tool:pytest]
# Configuration for endpoint testing
testpaths =
tests/integration/test_comprehensive_endpoint_suite.py
tests/unit/test_api_endpoints_unit.py
# Test markers for endpoint testing
markers =
health: Health and status endpoint tests
models: Model management endpoint tests
dspy: DSPy pipeline endpoint tests
mlflow: MLflow proxy endpoint tests
auth: Authentication and security tests
integration: Integration test scenarios
unit: Unit tests with mocks
slow: Slow running tests
requires_auth: Tests that need API keys
requires_mlflow: Tests that need MLflow server
# Options for endpoint testing
addopts =
-v
--tb=short
--strict-markers
--strict-config
--durations=10
--color=yes
-p no:warnings
--maxfail=5
# Test discovery
python_files =
test_*endpoint*.py
test_*api*.py
test_comprehensive*.py
python_classes =
Test*Endpoints*
Test*API*
Test*Suite*
python_functions =
test_*
# Minimum Python version
minversion = 3.8
# Timeout for tests
timeout = 60
# Parallel execution settings
# -n auto to use all CPU cores: pytest -n auto
# Requires pytest-xdist: pip install pytest-xdist
# Coverage settings (if pytest-cov is installed)
# Requires pytest-cov: pip install pytest-cov
# --cov=src --cov-report=html --cov-report=term-missing
# Logging
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Filtering
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*HTTPSConnection.*:urllib3.exceptions.InsecureRequestWarning
# Environment variables for testing
env =
TESTING=true
PYTHONPATH=.
MLFLOW_TRACKING_URI=file:///tmp/test_mlruns
REDIS_HOST=localhost
REDIS_PORT=6379