Skip to content

Commit

Permalink
Update regression test case
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Feb 3, 2021
1 parent ba235f2 commit 59cfc82
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,12 @@ def test_append_empty_files(tmp_path):
target = tmp_path.joinpath('target.7z')
os.chdir(str(tmp_path.joinpath('src')))
with py7zr.SevenZipFile(target, 'w') as archive:
archive.writeall('1.txt')
archive.write('1.txt')
with py7zr.SevenZipFile(target, 'a') as archive:
archive.writeall('2.txt')
archive.write('2.txt')
#
with py7zr.SevenZipFile(target, 'r') as archive:
archive.test()
#
p7zip_test(tmp_path / 'target.7z')
libarchive_extract(tmp_path / 'target.7z', tmp_path.joinpath('tgt2'))

0 comments on commit 59cfc82

Please sign in to comment.