diff --git a/tests/test_routing.py b/tests/test_routing.py index f3ea6d4..efef2b0 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -21,7 +21,7 @@ def test_solve_all_simple_paths_no_node(): net = networks.simple_network() with pytest.raises(NodeNotFound): - routing.solve_all_simple_paths(net, 1, 99) + list(routing.solve_all_simple_paths(net, 1, 99)) def test_solve_all_simple_paths_cutoff(): @@ -122,12 +122,12 @@ def test_doctest(): if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG) # test_doctest() - # test_solve_all_simple_paths_no_node() + test_solve_all_simple_paths_no_node() # test_solve_all_simple_paths_cutoff() # test_solve_all_shortest_paths() # test_solve_all_shortest_paths_no_node() # test_get_path_ends() # test_get_path_ends_single_edge() # test_solve_shortest_path_directions() - test_solve_shortest_path_split_network() + # test_solve_shortest_path_split_network() print("Done!") diff --git a/wayfarer/routing.py b/wayfarer/routing.py index da77441..94ab2b7 100644 --- a/wayfarer/routing.py +++ b/wayfarer/routing.py @@ -361,8 +361,8 @@ def solve_all_shortest_paths( >>> pths = solve_all_shortest_paths(net, 0, 2) >>> print(list(pths)) [[0, 1, 2]] - # noqa: E501 """ + # noqa: E501 all_shortest_paths = []