-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
29 lines (25 loc) · 880 Bytes
/
pytest.ini
File metadata and controls
29 lines (25 loc) · 880 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
[pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test execution
addopts = -v --strict-markers --disable-warnings --durations=10 -p no:warnings
asyncio_mode = auto
# Test markers
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks integration tests (run with '-m integration')
unit: marks unit tests (run with '-m unit')
network: tests that require network access
asyncio: marks tests that use asyncio
anyio: marks tests that use anyio
# Logging configuration
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Disable warning about asyncio default fixture loop scope
filterwarnings =
ignore::pytest.PytestDeprecationWarning:asyncio