MCPcopy Index your code
hub / github.com/openai/openai-python / test_top_level_file_array

Function test_top_level_file_array

tests/test_extract_files.py:38–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_top_level_file_array() -> None:
39 query = {"files": [b"file one", b"file two"], "title": "hello"}
40 assert extract_files(query, paths=[["files", "<array>"]]) == [("files[]", b"file one"), ("files[]", b"file two")]
41 assert query == {"title": "hello"}
42
43
44@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

extract_filesFunction · 0.90

Tested by

no test coverage detected