MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / test_string_not_allowed

Function test_string_not_allowed

tests/test_files.py:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def test_string_not_allowed() -> None:
46 with pytest.raises(TypeError, match="Expected file types input to be a FileContent type or to be a tuple"):
47 to_httpx_files(
48 {
49 "file": "foo", # type: ignore
50 }
51 )

Callers

nothing calls this directly

Calls 1

to_httpx_filesFunction · 0.90

Tested by

no test coverage detected