Skip to content

Commit

Permalink
util x2
Browse files Browse the repository at this point in the history
  • Loading branch information
tathey1 committed Jan 4, 2024
1 parent 0edc8de commit ebf9c9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion brainlit/BrainLine/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def test_dir_to_atlas_pts(tmp_path):
json_dir = tmp_path / "json_data"
json_dir.mkdir()

json_data = [{"point": [-1, 0, 0]}, {"point": [1, 1, 1]}, {"point": [2, 1, 1]}]
json_data = [{"point": [10, 0, 0]}, {"point": [1, 1, 1]}, {"point": [2, 1, 1]}]
with open(json_dir / "json1.json", "w") as f:
json.dump(json_data, f)

Expand All @@ -293,3 +293,9 @@ def test_dir_to_atlas_pts(tmp_path):

outname = tmp_path / "filtered.txt"
util.dir_to_atlas_pts(dir=json_dir, outname=outname, atlas_file=atlas_file)

with open(outname, "r") as f:
for count, _ in enumerate(f):
pass

assert count + 1 == 3

0 comments on commit ebf9c9c

Please sign in to comment.