-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpytest.ini
More file actions
18 lines (16 loc) · 1019 Bytes
/
Copy pathpytest.ini
File metadata and controls
18 lines (16 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[pytest]
# The test suite lives in tests/; tests/conftest.py puts the project root and
# tests/ on sys.path so the top-level imports still resolve.
testpaths = tests
# Measure coverage on every run and emit both a terminal summary and the
# Cobertura coverage.xml that Codacy consumes (config in .coveragerc). Requires
# pytest-cov (see requirements.txt).
addopts = --cov --cov-report=term-missing --cov-report=xml
# pyshark 0.6 drives tshark through asyncio and calls the child-watcher APIs
# (get_child_watcher / set_child_watcher / SafeChildWatcher), deprecated in
# Python 3.12 and removed in 3.14. These calls live inside pyshark, not our
# code, and the 3.14 removal is already shimmed in utils/asyncio_shim.py.
# Silence only those specific third-party deprecations so the suite output
# stays readable; our own warnings are deliberately left visible.
filterwarnings =
ignore:'(SafeChildWatcher|set_child_watcher|get_child_watcher|AbstractChildWatcher)' is deprecated as of Python 3\.12:DeprecationWarning