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

Function test_multiple_files

tests/test_extract_files.py:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def test_multiple_files() -> None:
30 query = {"documents": [{"file": b"My first file"}, {"file": b"My second file"}]}
31 assert extract_files(query, paths=[["documents", "<array>", "file"]]) == [
32 ("documents[][file]", b"My first file"),
33 ("documents[][file]", b"My second file"),
34 ]
35 assert query == {"documents": [{}, {}]}
36
37
38def test_top_level_file_array() -> None:

Callers

nothing calls this directly

Calls 1

extract_filesFunction · 0.90

Tested by

no test coverage detected