Skip to content

Commit 14cc15b

Browse files
committed
Fix CodeQL URL substring assertion
1 parent 5d4851e commit 14cc15b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/crewai-tools/tests/tools/stagehand_tool_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,13 @@ def test_navigate_command(mock_run, stagehand_tool):
164164
)
165165

166166
# Assertions
167-
assert "https://example.com" in result
167+
assert result == "Successfully navigated to https://example.com"
168+
mock_run.assert_called_once_with(
169+
stagehand_tool,
170+
instruction="Go to example.com",
171+
url="https://example.com",
172+
command_type="navigate",
173+
)
168174

169175

170176
@patch(

0 commit comments

Comments
 (0)