-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathpytest.ini
More file actions
48 lines (43 loc) · 1.63 KB
/
Copy pathpytest.ini
File metadata and controls
48 lines (43 loc) · 1.63 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
[pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
-p pytest_mock
-v
--tb=short
--strict-markers
# Markers
markers =
smoke: Critical path tests that MUST always pass
unit: Fast, isolated unit tests
integration: Tests requiring database or services
e2e: End-to-end tests with full system
slow: Tests that take > 5 seconds
ai: Tests requiring GEMINI_API_KEY
requires_gam: Live GAM API tests (nightly CI only; see gam-nightly.yml)
skip_ci: Skip in CI environment
asyncio: Async test functions
requires_db: Tests requiring a real database with tables
admin: Tests for admin UI template rendering and web interface
arch_guard: Structural architecture guard tests (AST/file scanning, no DB)
# Ignore patterns
norecursedirs = .git .venv tools scripts migrations
# Suppress third-party deprecation warnings (our code warnings remain visible)
filterwarnings =
default
ignore::DeprecationWarning:a2a\.server
ignore::DeprecationWarning:googleads\.common
ignore::RuntimeWarning:subprocess
ignore::DeprecationWarning:zeep\.cache
ignore::ResourceWarning:asyncio\.base_events
ignore::ResourceWarning:asyncio\.selector_events
# NOTE: the cosmetic Product RootModel-union serializer warning is NOT suppressed
# suite-wide — it is scoped to the get_products serialization tests in
# tests/unit/test_response_shapes.py via @pytest.mark.filterwarnings, so a real
# serializer regression in any other model still surfaces. See PR #1388 review F3.
# Asyncio mode
asyncio_mode = auto