forked from Graphify-Labs/graphify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
20 lines (15 loc) · 712 Bytes
/
Copy pathconftest.py
File metadata and controls
20 lines (15 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from __future__ import annotations
from typing import Any
import pytest
_ANALYZE_WARNING_FILTERS = (
"ignore:Tensorflow not installed; ParametricUMAP will be unavailable:ImportWarning:umap",
"ignore:Please import `random` from the `scipy\\.sparse` namespace.*:"
"DeprecationWarning:hyppo\\.independence\\.hhg",
"ignore:The keyword argument 'nopython=False' was supplied.*:Warning:numba\\.core\\.decorators",
)
def pytest_collection_modifyitems(items: list[Any]) -> None:
for item in items:
if item.path.name != "test_analyze.py":
continue
for warning_filter in _ANALYZE_WARNING_FILTERS:
item.add_marker(pytest.mark.filterwarnings(warning_filter))