Skip to content

Commit f9bc11a

Browse files
committed
Loosened test_images_corrupt to allow for Anthropic
1 parent 8310d60 commit f9bc11a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_paperqa.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,8 +1732,9 @@ async def test_images_corrupt(stub_data_dir: Path, caplog) -> None:
17321732
"What districts neighbor the Western Addition?", settings=settings
17331733
)
17341734
assert not session.contexts, "Expected no contexts to be made from a bad image."
1735-
assert (
1736-
"unsupported image" in caplog.text
1735+
assert any(
1736+
x in caplog.text.lower()
1737+
for x in ("unsupported image", "could not process image")
17371738
), "Expected a caught exception about an unsupported image."
17381739

17391740
# By suppressing the use of images, we can actually gather evidence now

0 commit comments

Comments
 (0)