def test_vdict_remove(): """Test the VDict remove method.""" obj = VDict([("a", VMobject())]) assert len(obj.submob_dict) == 1 obj.remove("a") assert len(obj.submob_dict) == 0 with pytest.raises(KeyError): obj.remove("a")
def test_vdict_remove(using_opengl_renderer): """Test the VDict remove method.""" obj = VDict([("a", OpenGLVMobject())]) assert len(obj.submob_dict) == 1 obj.remove("a") assert len(obj.submob_dict) == 0 with pytest.raises(KeyError): obj.remove("a")