Skip to content
Snippets Groups Projects
Commit c598dfa7 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Fix EPUB tests after supporting zipdetails.

parent f30387bd
No related branches found
No related tags found
No related merge requests found
Pipeline #658974 failed
......@@ -45,16 +45,18 @@ def differences(epub1, epub2):
return epub1.compare(epub2).details
@skip_unless_tools_exist("zipinfo")
@skip_unless_tools_exist("zipinfo", "zipdetails")
def test_differences(differences):
assert differences[0].source1 == "zipinfo {}"
assert differences[0].source2 == "zipinfo {}"
assert differences[1].source1 == "content.opf"
assert differences[1].source2 == "content.opf"
assert differences[2].source1 == "toc.ncx"
assert differences[2].source2 == "toc.ncx"
assert differences[3].source1 == "ch001.xhtml"
assert differences[3].source2 == "ch001.xhtml"
assert differences[1].source1.startswith("zipdetails ")
assert differences[1].source2.startswith("zipdetails ")
assert differences[2].source1 == "content.opf"
assert differences[2].source2 == "content.opf"
assert differences[3].source1 == "toc.ncx"
assert differences[3].source2 == "toc.ncx"
assert differences[4].source1 == "ch001.xhtml"
assert differences[4].source2 == "ch001.xhtml"
# Flatten everything recursively, as XMLFile will contain reformatted data
# under Difference.details.
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment