MCPcopy
hub / github.com/langroid/langroid / test_remove_object

Function test_remove_object

tests/main/test_object_registry.py:87–95  ·  view source on GitHub ↗

Test the removal of an object from the registry.

(create_objects)

Source from the content-addressed store, hash-verified

85
86
87def test_remove_object(create_objects):
88 """Test the removal of an object from the registry."""
89 a1, a2, b1 = create_objects
90 # Ensure the object is initially in the registry
91 assert ObjectRegistry.get(a1.id) is not None
92 # Remove the object
93 ObjectRegistry.remove(a1.id)
94 # Ensure the object is no longer in the registry
95 assert ObjectRegistry.get(a1.id) is None
96
97
98def test_cleanup_registry(create_objects):

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…