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

Method test_list_popped_wholesale

tests/test_files.py:73–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 assert result["file"] is file_bytes
72
73 def test_list_popped_wholesale(self) -> None:
74 files = [b"f1", b"f2"]
75 original = {"files": files, "title": "t"}
76 result = deepcopy_with_paths(original, [["files", "<array>"]])
77 assert_different_identities(result, original)
78 result_files = result["files"]
79 assert isinstance(result_files, list)
80 assert_different_identities(result_files, files)
81
82 def test_nested_array_path_copies_list_and_elements(self) -> None:
83 elem1 = {"file": b"f1", "extra": 1}

Callers

nothing calls this directly

Calls 2

deepcopy_with_pathsFunction · 0.90

Tested by

no test coverage detected