aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-05-21 17:46:37 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-05-21 17:46:37 -0700
commitbe28fd5d4a600bc29507418fddfdc95802abc98f (patch)
treec32bae2797ff065b8e3668f529ee92c2a33ac6a0 /python/tests
parent1e7c692d00d51875b62686c99b3a782b0c3c8fca (diff)
downloadfatcat-be28fd5d4a600bc29507418fddfdc95802abc98f.tar.gz
fatcat-be28fd5d4a600bc29507418fddfdc95802abc98f.zip
ingest: add per-container ingest type overrides
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'