There is a bug in the mocked response of test_issue_181_example.
As pointed out by Copilot in this comment:
In mock_query, the loop breaks after 2 commands (one FindImage+UpdateImage pair), so only one image can be appended to changed_ids. The test currently asserts len(changed_ids) == 2, which doesn't match the mocked behavior and will fail; either adjust the mock to return responses for 2 pairs (e.g., break after 4 commands) or change the assertion to expect 1.
We need to fix this either by adjusting the mock to return 4 commands or by expecting a length of 1 in the assertion.
There is a bug in the mocked response of
test_issue_181_example.As pointed out by Copilot in this comment:
We need to fix this either by adjusting the mock to return 4 commands or by expecting a length of 1 in the assertion.