-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathpytest.ini
More file actions
39 lines (34 loc) · 1.13 KB
/
pytest.ini
File metadata and controls
39 lines (34 loc) · 1.13 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
[pytest]
# Pytest configuration for Microsoft Agents for Python
# Treat all warnings as errors by default
# This ensures that any code generating warnings will fail tests,
# promoting cleaner code and early detection of issues
filterwarnings =
error
# Ignore specific warnings that are not actionable or are from dependencies
ignore::DeprecationWarning:pkg_resources.*
ignore::DeprecationWarning:setuptools.*
ignore::PendingDeprecationWarning
# pytest-asyncio warnings that are safe to ignore
ignore:.*deprecated.*asyncio.*:DeprecationWarning:pytest_asyncio.*
# Test discovery configuration
testpaths = tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Output configuration
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--durations=10
# Minimum version requirement
minversion = 6.0
# Markers for test categorization
markers =
unit: Unit tests
integration: Integration tests
slow: Slow tests that may take longer to run
requires_network: Tests that require network access
requires_auth: Tests that require authentication