Fix rar tests

This commit is contained in:
Timmy Welch 2022-10-02 21:13:26 -07:00
parent 4b6d35fd3a
commit 5587bfac31
No known key found for this signature in database

View File

@ -56,6 +56,7 @@ def test_save_cbi(tmp_comic):
md = tmp_comic.read_cbi()
@pytest.mark.xfail(not (comicapi.comicarchive.rar_support and shutil.which("rar")))
def test_save_cix_rar(tmp_path):
cbr_path = datadir / "fake_cbr.cbr"
shutil.copy(cbr_path, tmp_path)
@ -67,6 +68,7 @@ def test_save_cix_rar(tmp_path):
assert md.replace(pages=[]) == comicapi.genericmetadata.md_test.replace(pages=[])
@pytest.mark.xfail(not (comicapi.comicarchive.rar_support and shutil.which("rar")))
def test_save_cbi_rar(tmp_path):
cbr_path = datadir / "fake_cbr.cbr"
shutil.copy(cbr_path, tmp_path)