From be28fd5d4a600bc29507418fddfdc95802abc98f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 21 May 2021 17:46:37 -0700 Subject: ingest: add per-container ingest type overrides --- python/tests/transform_ingest.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/tests') 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' -- cgit v1.2.3