This repository was archived by the owner on Mar 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
45 lines (42 loc) · 1.7 KB
/
pytest.ini
File metadata and controls
45 lines (42 loc) · 1.7 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
[pytest]
# Last reviewed 2026-03-02
asyncio_mode = auto
testpaths = DivineOS/tests/unit
python_files = test_*.py
python_classes = Test*
python_functions = test_*
timeout = 30
timeout_method = thread
addopts = --tb=short -v -p no:capture
markers =
slow: slow tests (integration, full UNIFIED, feeling stack). Run with: pytest -m "not slow" for fast loop.
verification: Batch 1 verification tests (confidence, degraded mode, constants)
pipeline: Pipeline-specific tests
degraded: Degraded mode tests
configuration: Configuration and constants tests
# CRITICAL: Warnings are failures. No test passes with warnings.
# This enforces code quality: warnings must be fixed, not ignored.
# Third-party library warnings are filtered below.
filterwarnings =
error
ignore::DeprecationWarning:pkg_resources
ignore::DeprecationWarning:setuptools
ignore::DeprecationWarning:distutils
ignore::PendingDeprecationWarning
ignore::DeprecationWarning:asyncio
ignore::ResourceWarning:sqlite3
ignore::pytest.PytestUnraisableExceptionWarning
ignore::DeprecationWarning:law
ignore::pytest.PytestRemovedIn9Warning
# UTF-8 encoding for Windows compatibility
# Fixes Unicode errors (✓, ✅, →, etc.) on Windows cmd
[tool:pytest]
console_output_style = progress
# Hypothesis configuration for property-based tests
# Reduce examples to prevent timeouts in CI/CD
# max_examples = 10: Property-based tests run 10 iterations per test instead of default 100.
# This balances coverage with speed in the test loop. Full coverage (100 examples) runs in CI/CD only.
# See: tests/conftest.py for DIVINEOS_TEST_NO_UNIFIED flag and slow marker for integration tests.
[hypothesis]
max_examples = 10
deadline = None