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

Method test_multiple_paths

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

Source from the content-addressed store, hash-verified

97 assert result is original
98
99 def test_multiple_paths(self) -> None:
100 f1 = b"file1"
101 f2 = b"file2"
102 original = {"a": f1, "b": f2, "c": "unchanged"}
103 result = deepcopy_with_paths(original, [["a"], ["b"]])
104 assert_different_identities(result, original)
105 assert result["a"] is f1
106 assert result["b"] is f2
107 assert result["c"] is original["c"]
108
109 def test_extract_files_does_not_mutate_original_top_level(self) -> None:
110 file_bytes = b"contents"

Callers

nothing calls this directly

Calls 2

deepcopy_with_pathsFunction · 0.90

Tested by

no test coverage detected