Skip to content

Commit

Permalink
Fix tests and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Apr 23, 2024
1 parent 5021b3a commit c740e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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!")
2 changes: 1 addition & 1 deletion wayfarer/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit c740e95

Please sign in to comment.