[WIP] Either refactoring

Fix test assertion
This commit is contained in:
Matthias Bisping 2023-02-06 17:51:35 +01:00
parent 3235a857f6
commit 274a5f56d4

View File

@ -98,4 +98,4 @@ def test_bad_xref_handling(bad_xref_pdf, dvc_test_data):
with pytest.raises(BadXref): with pytest.raises(BadXref):
extract_image(doc, xref) extract_image(doc, xref)
assert xref_to_maybe_image(doc, xref).is_nothing() assert xref_to_maybe_image(doc, xref).is_left()