Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gbg141 committed Mar 8, 2025
1 parent 2d365fc commit 649b8ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/data/utils/test_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ def setup_method(self):

def test_get_complex_connectivity(self):
"""Test get_complex_connectivity."""
out = get_complex_connectivity(self.complex, 2, neighborhoods=self.neighborhoods2)
out = get_complex_connectivity(self.complex, 3, neighborhoods=self.neighborhoods2)
assert 'up_laplacian-0' in out.keys()

def test_get_combinatorial_complex_connectivity(self):
"""Test get_complex_connectivity."""
out = get_combinatorial_complex_connectivity(self.complex, 3)
assert 'adjacency_0' in out.keys()

def test_select_neighborhoods_of_interest(self):
"""Test select_neighborhoods_of_interest."""
connectivity = get_complex_connectivity(self.complex, 2)
Expand Down
2 changes: 2 additions & 0 deletions topobench/data/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .utils import (
ensure_serializable, # noqa: F401
generate_zero_sparse_connectivity, # noqa: F401
get_combinatorial_complex_connectivity, # noqa: F401
get_complex_connectivity, # noqa: F401
get_routes_from_neighborhoods, # noqa: F401
load_cell_complex_dataset, # noqa: F401
Expand All @@ -13,6 +14,7 @@
)

utils_functions = [
"get_combinatorial_complex_connectivity",
"get_complex_connectivity",
"get_routes_from_neighborhoods",
"generate_zero_sparse_connectivity",
Expand Down

0 comments on commit 649b8ea

Please sign in to comment.