Skip to content

Commit

Permalink
Add test for getinfo on a missing. Restores 100% coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 25, 2023
1 parent bf85e75 commit 885d0e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,3 +530,12 @@ def test_extract_orig_with_implied_dirs(self, alpharep):
# wrap the zipfile for its side effect
zipp.Path(zf)
zf.extractall(source_path.parent)

@pass_alpharep
def test_getinfo_missing(self, alpharep):
"""
Validate behavior of getinfo on original zipfile after wrapping.
"""
zipp.Path(alpharep)
with self.assertRaises(KeyError):
alpharep.getinfo('does-not-exist')

0 comments on commit 885d0e7

Please # to comment.