def test_pc_deserialiation(self) -> None: # this tests that old fields (and instances) can be deserialized with open(LIFT_PC_PATH) as f: instance_json = f.read().strip() try: PrivateComputationInstance.loads_schema(instance_json) except Exception as e: raise RuntimeError(ERR_MSG) from e
def read(self, instance_id: str) -> PrivateComputationInstance: return PrivateComputationInstance.loads_schema( self.repo.read(instance_id))