Skip to content

Fix failing test test_issue_181_example in test_ResponseHandler.py #733

Description

@ad-claw000

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions