Skip to content

Commit 8b4f938

Browse files
committed
Fix imports in tests
1 parent 4bb8fe9 commit 8b4f938

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/communities/test_api_wrappers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import warnings
22

3+
import pytest
4+
35
from hypergraphx import Hypergraph
46
from hypergraphx.communities.api import fit_hysc, run_core_periphery
57

@@ -12,6 +14,10 @@ def test_run_core_periphery_result_shape():
1214

1315

1416
def test_fit_hysc_returns_labels():
17+
pytest.importorskip(
18+
"sklearn",
19+
reason="HySC requires scikit-learn; skip when optional dependency is missing.",
20+
)
1521
warnings.filterwarnings(
1622
"ignore",
1723
message="Could not find the number of physical cores*",

tests/measures/temporal/test_temporal_shortest_paths_helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import pytest
33

44
pytest.importorskip("tqdm")
5-
pytest.importorskip("requests")
65

76
from hypergraphx import Hypergraph
87
from hypergraphx.measures.temporal.temporal_shortest_paths import (

0 commit comments

Comments
 (0)