def test_unregister_reserved(self): lib = PushTypeLibrary() with pytest.raises(ValueError): lib.unregister("untyped")
def test_unregister(self): lib = PushTypeLibrary() lib.unregister("char") lib.unregister("float") assert set(lib.keys()) == {"int", "str", "bool", "exec", "code"}
def test_unregister_reserved(self): lib = PushTypeLibrary() with pytest.raises(ValueError): lib.unregister("exec")
def test_unregister(self): lib = PushTypeLibrary() lib.unregister("char") lib.unregister("float") assert set(lib.keys()) == ALL_CORE_TYPE_NAMES - {"char", "float"}
def test_unregister(self): lib = PushTypeLibrary() lib.unregister("char") lib.unregister("float") assert set(lib.keys()) == {"int", "str", "bool", "exec", "code"}