Skip to content

Commit

Permalink
Adjust paths in the test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Sep 8, 2023
1 parent aebe088 commit 710dbb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def pytest_generate_tests(metafunc):
if "network_file" in metafunc.fixturenames:
size = int(metafunc.config.getoption("networksize"))
models = []
for model in os.listdir("./bbm-bnet-inputs-true"):
for model in os.listdir("./models/bbm-bnet-inputs-true"):
if not model.endswith(".bnet"):
# Just in case there are some other files there.
continue
path = f"./bbm-bnet-inputs-true/{model}"
path = f"./models/bbm-bnet-inputs-true/{model}"
bn = BooleanNetwork.from_file(path)
if bn.num_vars() > size:
continue
Expand Down
8 changes: 4 additions & 4 deletions tests/succession_diagram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_succession_diagram_structure(self):


def test_expansion_depth_limit_bfs():
bn = BooleanNetwork.from_file("bbm-bnet-inputs-true/033.bnet")
bn = BooleanNetwork.from_file("models/bbm-bnet-inputs-true/033.bnet")

sd = SuccessionDiagram(bn)
assert not sd.expand_bfs(bfs_level_limit=3)
Expand All @@ -119,7 +119,7 @@ def test_expansion_depth_limit_bfs():


def test_expansion_depth_limit_dfs():
bn = BooleanNetwork.from_file("bbm-bnet-inputs-true/033.bnet")
bn = BooleanNetwork.from_file("models/bbm-bnet-inputs-true/033.bnet")

sd = SuccessionDiagram(bn)
assert not sd.expand_dfs(dfs_stack_limit=3)
Expand All @@ -128,7 +128,7 @@ def test_expansion_depth_limit_dfs():


def test_expansion_size_limit_bfs():
bn = BooleanNetwork.from_file("bbm-bnet-inputs-true/033.bnet")
bn = BooleanNetwork.from_file("models/bbm-bnet-inputs-true/033.bnet")

sd = SuccessionDiagram(bn)
assert not sd.expand_bfs(size_limit=200)
Expand All @@ -137,7 +137,7 @@ def test_expansion_size_limit_bfs():


def test_expansion_size_limit_dfs():
bn = BooleanNetwork.from_file("bbm-bnet-inputs-true/033.bnet")
bn = BooleanNetwork.from_file("models/bbm-bnet-inputs-true/033.bnet")

sd = SuccessionDiagram(bn)
assert not sd.expand_dfs(size_limit=200)
Expand Down

1 comment on commit 710dbb0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
nfvsmotifs
   SuccessionDiagram.py154497%6–7, 208, 452
   control.py1201389%47, 56, 60, 66, 80, 89–105, 319, 334
   interaction_graph_utils.py142894%6–9, 57, 70, 95–96
   motif_avoidant.py163696%23–24, 130, 147, 184, 309
   petri_net_translation.py84693%23–24, 52, 63–64, 94
   pyeda_utils.py953464%12, 56–66, 90, 95, 98–112, 140–144
   space_utils.py118596%15–16, 198, 213, 270
   state_utils.py681282%15, 55–66, 98, 105, 114
   terminal_restriction_space.py44393%6–7, 80
   trappist_core.py1862089%10–11, 39, 41, 81, 127, 192, 194, 196, 231–233, 259, 317, 319, 349, 389, 391, 422, 451
nfvsmotifs/FVSpython3
   FVS.py481079%90–91, 97, 133, 183–189
   FVS_localsearch_10_python.py90199%179
nfvsmotifs/_sd_algorithms
   compute_attractor_seeds.py29197%6
   expand_attractor_seeds.py51492%6, 95–100
   expand_bfs.py28196%6
   expand_dfs.py30197%6
   expand_minimal_spaces.py37197%6
   expand_to_target.py30390%6, 37, 42
TOTAL161413392% 

Tests Skipped Failures Errors Time
360 0 💤 0 ❌ 0 🔥 3m 25s ⏱️

Please sign in to comment.