From 922c7f326382aa06f8bc4c9b5dcb2c0098160adb Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 21 May 2026 17:36:43 -0400 Subject: extend tests for print-jobs response unmarshaling --- testdata/jobsresp.json | 4 ++-- testdata/printablenormalization.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 testdata/printablenormalization.json (limited to 'testdata') diff --git a/testdata/jobsresp.json b/testdata/jobsresp.json index 3f43d2c..69b216f 100644 --- a/testdata/jobsresp.json +++ b/testdata/jobsresp.json @@ -55,7 +55,7 @@ "normalized_file": null, "page_count": null, "source_file": null, - "source_md5_sum": "e78512c777e7f5841fe8f1992cefb898", + "source_md5sum": "e78512c777e7f5841fe8f1992cefb898", "source_url": "https://www.dropbox.com/sh/p3zh22vzsaegiri/AADP367j0bTWlt8fCu-_tm2ia/161025/139056_cover.pdf?dl=1" }, "interior": { @@ -63,7 +63,7 @@ "normalized_file": null, "page_count": null, "source_file": null, - "source_md5_sum": "7f8af20c296747689756f8e310135d79", + "source_md5sum": "7f8af20c296747689756f8e310135d79", "source_url": "https://www.dropbox.com/sh/p3zh22vzsaegiri/AACOUn3LFKsITDzylh13bQpsa/161025/thesis2.pdf?dl=1" }, "pod_package_id": "0600X0900.BW.STD.PB.060UW444.MXX" diff --git a/testdata/printablenormalization.json b/testdata/printablenormalization.json new file mode 100644 index 0000000..990dcd0 --- /dev/null +++ b/testdata/printablenormalization.json @@ -0,0 +1,31 @@ +{ + "interior": { + "source_file": { + "file_id": 4354943, + "filename": "unspecified" + }, + "normalized_file": { + "file_id": 4354947, + "filename": "normalized.pdf" + }, + "source_url": "https://www.dropbox.com/s/r20orb8umqjzav9/lulu_trade_interior_template-32.pdf?dl=1&raw=1", + "source_md5sum": "2a8526c4189e82ff119f11457e23fb9b", + "job_id": 501439, + "page_count": 32 + }, + "cover": { + "source_file": { + "file_id": 4354944, + "filename": "unspecified" + }, + "normalized_file": { + "file_id": 4354948, + "filename": "normalized.pdf" + }, + "source_url": "https://www.dropbox.com/s/7bv6mg2tj0h3l0r/lulu_trade_perfect_template.pdf?dl=1&raw=1", + "source_md5sum": "d90458dd2081aa59bb77a04eb6b5fb0c", + "job_id": 543910, + "page_count": 1 + }, + "pod_package_id": "0600X0900.BW.STD.PB.060UW444.MXX" +} -- cgit v1.2.3