summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/transform_ingest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/tests/transform_ingest.py b/python/tests/transform_ingest.py
index c7044bc0..a61aa4a7 100644
--- a/python/tests/transform_ingest.py
+++ b/python/tests/transform_ingest.py
@@ -54,3 +54,9 @@ def test_rich_ingest_release():
assert ir['base_url'] == 'https://doi.org/10.123/456'
assert ir['ext_ids']['doi'] == '10.123/456'
assert ir['ext_ids'].get('pmcid') is None
+ assert ir['ingest_type'] == 'pdf'
+
+ # check ingest type ("d-lib")
+ r.container_id = "ugbiirfvufgcjkx33r3cmemcuu"
+ ir = release_ingest_request(r)
+ assert ir['ingest_type'] == 'html'