MCPcopy
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / test_deepcopy_with_object

Function test_deepcopy_with_object

tests/utils/copy_utils_test.py:83–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def test_deepcopy_with_object():
84 original = NormalObject(10)
85 copy_obj = safe_deepcopy(original)
86 assert copy_obj.value == original.value
87 assert copy_obj is not original
88 assert copy_obj.nested is not original.nested
89
90
91def test_deepcopy_with_custom_deepcopy_fallback():

Callers

nothing calls this directly

Calls 2

safe_deepcopyFunction · 0.90
NormalObjectClass · 0.85

Tested by

no test coverage detected