-
Notifications
You must be signed in to change notification settings - Fork 314
Expand file tree
/
Copy pathpytest.ini
More file actions
40 lines (34 loc) · 1.16 KB
/
Copy pathpytest.ini
File metadata and controls
40 lines (34 loc) · 1.16 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
[pytest]
# Pytest configuration for TranslateBookWithLLM
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Output options
# Integration tests require a live Ollama server — excluded by default.
# Run them explicitly with: pytest -m integration
# End-to-end tests need a server, a real LLM key and a browser, and they spend
# API tokens — excluded by default. Run them with: pytest tests/e2e -m e2e
addopts =
-v
--strict-markers
--tb=short
-m "not integration and not e2e"
# Markers
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests
unit: marks tests as unit tests
e2e: marks end-to-end tests (live server + real LLM + browser)
epub: marks tests related to EPUB processing
asyncio: marks tests as async (handled by pytest-asyncio)
# pytest-asyncio: only run @pytest.mark.asyncio tests in async mode
asyncio_mode = strict
# Coverage options (if pytest-cov is installed)
# Uncomment to enable coverage reporting
# addopts =
# --cov=src
# --cov-report=html
# --cov-report=term-missing