MCPcopy
hub / github.com/openai/openai-python / test_string_not_allowed

Function test_string_not_allowed

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

Source from the content-addressed store, hash-verified

44
45
46def test_string_not_allowed() -> None:
47 with pytest.raises(TypeError, match="Expected file types input to be a FileContent type or to be a tuple"):
48 to_httpx_files(
49 {
50 "file": "foo", # type: ignore
51 }
52 )
53
54
55def 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