Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Loosened test_images_corrupt to allow for Anthropic
  • Loading branch information
jamesbraza committed Oct 27, 2025
commit f9bc11a59b78fe3095fe63407aaae61b115bcde5
5 changes: 3 additions & 2 deletions tests/test_paperqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -1732,8 +1732,9 @@ async def test_images_corrupt(stub_data_dir: Path, caplog) -> None:
"What districts neighbor the Western Addition?", settings=settings
)
assert not session.contexts, "Expected no contexts to be made from a bad image."
assert (
"unsupported image" in caplog.text
assert any(
x in caplog.text.lower()
for x in ("unsupported image", "could not process image")
), "Expected a caught exception about an unsupported image."

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