scitacean.testing.client.process_uploaded_dataset#

scitacean.testing.client.process_uploaded_dataset(dataset, orig_datablocks, attachments)[source]#

Process a dataset as if it was uploaded to SciCat.

This function attempts to mimic how SciCat converts uploaded dataset (and associated) models to the in-database (and download) models. It is not completely faithful to the real SciCat but only an approximation.

Return type:

tuple[DownloadDataset, list[DownloadOrigDatablock] | None, list[DownloadAttachment] | None]