def link_blob_to_doc(self, *args, **kwargs): """End the upload and simulate a network loss.""" # Call the original method to effectively end the upload process super().link_blob_to_doc(*args, **kwargs) # And throw an error raise NotFound("Mock'ed error")
def extract_edit_info(ref: Path): raise NotFound()