Fix CodeQL URL substring assertion

This commit is contained in:
Rip&Tear
2026-06-26 15:05:13 +08:00
parent 5d4851eac7
commit 14cc15b4ec

View File

@@ -164,7 +164,13 @@ def test_navigate_command(mock_run, stagehand_tool):
)
# Assertions
assert "https://example.com" in result
assert result == "Successfully navigated to https://example.com"
mock_run.assert_called_once_with(
stagehand_tool,
instruction="Go to example.com",
url="https://example.com",
command_type="navigate",
)
@patch(