test: adapt salvaged SSRF test to current web_extract_tool signature

Follow-up for salvaged PR #35840: current main removed the
use_llm_processing kwarg (LLM summarization dropped) and moved the input
SSRF gate to async_is_safe_url. Adjust the new firecrawl-final-url test
to match.
This commit is contained in:
teknium1 2026-07-01 00:30:04 -07:00 committed by Teknium
parent 2e12401ed4
commit 2475a554d5

View file

@ -488,7 +488,7 @@ class TestWebToolPolicy:
monkeypatch.setattr("tools.interrupt.is_interrupted", lambda: False)
monkeypatch.setenv("FIRECRAWL_API_KEY", "fake-key")
result = json.loads(await web_tools.web_extract_tool(["https://allowed.test"], use_llm_processing=False))
result = json.loads(await web_tools.web_extract_tool(["https://allowed.test"]))
assert checked_urls == ["https://allowed.test"]
assert result["results"][0]["url"] == "http://169.254.169.254/latest/meta-data/"