Test the removal of an object from the registry.
(create_objects)
| 85 | |
| 86 | |
| 87 | def 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 | |
| 98 | def test_cleanup_registry(create_objects): |