diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/ingest.py | 2 | ||||
-rw-r--r-- | python/tests/import_ingest.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py index ed948606..ca06a988 100644 --- a/python/fatcat_tools/importers/ingest.py +++ b/python/fatcat_tools/importers/ingest.py @@ -782,7 +782,7 @@ class IngestFilesetResultImporter(IngestFileResultImporter): mimetype=ingest_file["mimetype"], extra=dict(), ) - if not (fsf.md5 and fsf.sha1 and fsf.path and fsf.size and fe.mimetype): + if not (fsf.md5 and fsf.sha1 and fsf.path and fsf.size and fsf.mimetype): self.counts["skip-partial-file-info"] += 1 return None if ingest_file.get("platform_url"): diff --git a/python/tests/import_ingest.py b/python/tests/import_ingest.py index 8f8a34c7..77d237c8 100644 --- a/python/tests/import_ingest.py +++ b/python/tests/import_ingest.py @@ -200,7 +200,7 @@ def test_ingest_fileset_dict_parse(ingest_fileset_importer): assert len(fs.manifest) == 3 assert fs.manifest[0].sha1 == "c0669e84e7b9052cc0f342e8ce7d31d59956326a" assert fs.manifest[0].md5 == "caf4d9fc2c6ebd0d9251ac84e0b6b006" - assert fs.manifest[0].extra["mimetype"] == "application/x-hdf" + assert fs.manifest[0].mimetype == "application/x-hdf" assert fs.manifest[0].size == 16799750 assert fs.manifest[0].path == "N2 on food R_2010_03_25__10_53_27___4___1_features.hdf5" assert ( |