Skip to content

Add ZipArchiveOperations with tests #578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 18, 2023
Merged

Add ZipArchiveOperations with tests #578

merged 5 commits into from
Dec 18, 2023

Conversation

mih
Copy link
Member

@mih mih commented Dec 18, 2023

This changeset an implementation ArchiveOperations for ZIP files. It makes use of datalad_next.iter_collections.zipfile.iter_zip to implement iteration.

The tests include a pytest-fixture called structured_sample_zip, which reports on a sample ZIP from the sample_zip fuxture, with its properties readily accessible. It should likely replace sample_zip.

Replaces #407

christian-monch and others added 2 commits December 18, 2023 08:47
This changeset an implementation `ArchiveOperations` for ZIP files. It
makes use of `datalad_next.iter_collections.zipfile.iter_zip` to
implement iteration.

The tests include a pytest-fixture called `structured_sample_zip`, which
reports on a sample ZIP from the `sample_zip` fuxture, with its
properties readily accessible. It should likely replace `sample_zip`.
Also remove needless verbosity by using already present
"shortcut" names.
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c387a92) 92.55% compared to head (a4e81f6) 92.62%.

Files Patch % Lines
datalad_next/archive_operations/zipfile.py 97.72% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #578      +/-   ##
==========================================
+ Coverage   92.55%   92.62%   +0.06%     
==========================================
  Files         145      147       +2     
  Lines       10570    10678     +108     
  Branches     1579     1600      +21     
==========================================
+ Hits         9783     9890     +107     
  Misses        614      614              
- Partials      173      174       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mih mih force-pushed the ziparchive branch 2 times, most recently from a1b7d75 to 971d062 Compare December 18, 2023 08:43
@mih mih merged commit 8bf779e into datalad:main Dec 18, 2023
@mih mih deleted the ziparchive branch December 18, 2023 09:53
@mih mih added this to the 1.1 milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants