Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Added *.csv to .gitignore (#76)
Browse files Browse the repository at this point in the history
* added csv to gitignore

* Fix gitignore

* No file writing in unit tests

* no reference to path.csv anywhere actually, so I'll remove it

---------

Co-authored-by: Patrick Creighton <[email protected]>
  • Loading branch information
SPDonaghy and patrick-5546 authored Jan 25, 2024
1 parent 356a549 commit d2ed19a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
__pycache__/
.mypy_cache/
.pytest_cache/

# global paths with exceptions
/global_paths/*.csv
!/global_paths/mock_global_path.csv
!/global_paths/path.csv
3 changes: 0 additions & 3 deletions global_paths/path.csv

This file was deleted.

7 changes: 3 additions & 4 deletions test/test_node_mock_global_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
@pytest.mark.parametrize(
"file_path",
[
("/workspaces/sailbot_workspace/src/local_pathfinding/anywhere_else/path_1.csv"),
("/workspaces/sailbot_workspace/src/local_pathfinding/anywhere_else/mock_global_path.csv"),
(""),
("/workspaces/sailbot_workspace/src/local_pathfinding/ global_paths/path_1.csv"),
("/workspaces/sailbot_workspace/src/local_pathfinding/ global_paths/mock_global_path.csv"),
],
)
def test_write_to_file(file_path: str):
Expand Down Expand Up @@ -62,8 +62,7 @@ def test_interpolate_path(
interval_spacing=interval_spacing,
pos=pos,
path_spacing=path_spacing,
write=True,
file_path="/workspaces/sailbot_workspace/src/local_pathfinding/global_paths/path_2.csv",
write=False,
)

assert isinstance(interpolated_path, Path)
Expand Down

0 comments on commit d2ed19a

Please sign in to comment.