diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-05-21 17:46:37 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-05-21 17:46:37 -0700 |
commit | be28fd5d4a600bc29507418fddfdc95802abc98f (patch) | |
tree | c32bae2797ff065b8e3668f529ee92c2a33ac6a0 /python/tests | |
parent | 1e7c692d00d51875b62686c99b3a782b0c3c8fca (diff) | |
download | fatcat-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.py | 6 |
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' |