-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
55 lines (44 loc) · 1.25 KB
/
pytest.ini
File metadata and controls
55 lines (44 loc) · 1.25 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
[pytest]
# Pytest configuration for Ollama++ API and CLI tests
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Minimum version
minversion = 7.0
# Test paths
testpaths = tests
# Markers for test categorization
markers =
unit: Unit tests (fast, no external dependencies)
integration: Integration tests (requires running services)
slow: Slow tests (may take >5 seconds)
api: Tests for Ollama API service
cli: Tests for CLI functionality
mcp: Tests for MCP tools
smoke: Quick smoke tests
# Output options
addopts =
-v
--strict-markers
--tb=short
--disable-warnings
--color=yes
-ra
# Coverage options (if pytest-cov is installed)
# addopts = --cov=src --cov=ollama_api_service --cov-report=html --cov-report=term
# Asyncio configuration
asyncio_mode = auto
# Timeout for tests (requires pytest-timeout)
# timeout = 300
# Log settings
log_cli = false
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Ignore certain files/directories
norecursedirs = .git .tox dist build *.egg venv env .venv
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning