Spaces:
Running
Running
Download tests/web_tools_support.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/web_tools_support.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/tests/web_tools_support.py
-
curl -L -o web_tools_support.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/web_tools_support.py
545 Bytes
| """Explicit web-client double for tests that do not perform outbound requests.""" | |
| import pytest | |
| from free_claude_code.application.web_tools.ports import WebFetchEgressPolicy | |
| from free_claude_code.core.web_tools import WebFetchResult, WebSearchResult | |
| class StubWebToolsClient: | |
| async def search(self, query: str) -> list[WebSearchResult]: | |
| pytest.fail(f"Unexpected web search: {query!r}") | |
| async def fetch(self, url: str, *, egress: WebFetchEgressPolicy) -> WebFetchResult: | |
| pytest.fail(f"Unexpected web fetch: {url!r}") | |