MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_pathlib_in_file_tuple

Function test_pathlib_in_file_tuple

tests/test_files.py:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def test_pathlib_in_file_tuple() -> None:
48 result = to_httpx_files({"file": ("custom.md", readme_path)})
49 assert result == IsDict({"file": IsTuple("custom.md", readme_path.read_bytes())})
50
51 result = to_httpx_files({"file": ("custom.md", readme_path, "text/markdown", {"X-Custom": "1"})})
52 assert result == IsDict({"file": IsTuple("custom.md", IsBytes(), "text/markdown", {"X-Custom": "1"})})
53
54
55@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

to_httpx_filesFunction · 0.90

Tested by

no test coverage detected