forked from mongodb/docs-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
33 lines (26 loc) · 719 Bytes
/
pytest.ini
File metadata and controls
33 lines (26 loc) · 719 Bytes
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
[pytest]
# Pytest configuration for Python FastAPI backend tests
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Output options
addopts =
-v
--strict-markers
--tb=short
--asyncio-mode=auto
--color=yes
# Markers for categorizing tests
markers =
unit: Unit tests with mocked dependencies
integration: Integration tests requiring database
slow: Tests that take longer to run
# Async settings
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Coverage settings (optional)
# Uncomment to enable coverage reporting
# addopts = --cov=src --cov-report=html --cov-report=term