Skip to content

Commit

Permalink
fix: correct mock_controller fixture to set status_callback=None and …
Browse files Browse the repository at this point in the history
…remove assertion
  • Loading branch information
openhands-agent committed Feb 23, 2025
1 parent eb78074 commit ebd667c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/test_cli_sid.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ def mock_agent():
@pytest.fixture
def mock_controller():
with patch('openhands.core.cli.create_controller') as mock_create_controller:
mock_controller_instance = AsyncMock()
mock_controller_instance = AsyncMock(status_callback=None)
mock_create_controller.return_value = (mock_controller_instance, None)
assert mock_controller_instance.status_callback is None
yield mock_controller_instance


Expand Down

0 comments on commit ebd667c

Please sign in to comment.