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

Function test_string_not_allowed

tests/test_files.py:101–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def test_string_not_allowed() -> None:
102 with pytest.raises(TypeError, match="Expected file types input to be a FileContent type or to be a tuple"):
103 to_httpx_files(
104 {
105 "file": "foo", # type: ignore
106 }
107 )
108
109
110def assert_different_identities(obj1: object, obj2: object) -> None:

Callers

nothing calls this directly

Calls 1

to_httpx_filesFunction · 0.90

Tested by

no test coverage detected