Skip to content

Commit

Permalink
- fixed testname, simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRosier committed Jan 23, 2024
1 parent dbeeead commit fac48a0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@


class TestAuroraUtils:
def test_remove_path_suffixes_single_suffix(self):
def test_remove_path_suffixes(self):
suffixes = [".nii", ".nii.gz", ".what.is.this.nii.gz", ""]
path_stem = "path/to/test"

paths_str = [path_stem + suffix for suffix in suffixes]
paths_path = [Path(path) for path in paths_str]

assert all(
Path(path_stem) == remove_path_suffixes(p1) == remove_path_suffixes(p2)
for p1, p2 in zip(paths_path, paths_str)
Path(path_stem) == remove_path_suffixes(p) == remove_path_suffixes(Path(p))
for p in paths_str
)

0 comments on commit fac48a0

Please sign in to comment.