Skip to content

Commit

Permalink
Simplify testwq
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Jun 11, 2023
1 parent 4162987 commit c90ade9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions datalad_next/archive_operations/tests/test_tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,8 @@ def test_tararchive_iterator(structured_sample_tar_xz: TestArchive):
items = list(archive_ops)
assert len(items) == structured_sample_tar_xz.item_count
for item in items:
item_name = (
# TODO should not require this conversion
str(PurePosixPath(item.name)) +
'/' if item.type == FileSystemItemType.directory
else str(PurePosixPath(item.name))
)
assert item_name in archive_ops
# TODO should be more flexible than just taking str
assert str(PurePosixPath(item.name)) in archive_ops


def test_open(structured_sample_tar_xz: TestArchive):
Expand Down

0 comments on commit c90ade9

Please sign in to comment.