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

Function test_shallow_copy_fallback

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

Source from the content-addressed store, hash-verified

96
97
98def test_shallow_copy_fallback():
99 original = {"origin": NonDeepcopyable(10)}
100 copy_obj = safe_deepcopy(original)
101 assert copy_obj is not original
102 assert copy_obj["origin"].value == original["origin"].value
103
104
105def test_circular_reference():

Callers

nothing calls this directly

Calls 2

safe_deepcopyFunction · 0.90
NonDeepcopyableClass · 0.85

Tested by

no test coverage detected