From c35f00957881818cc70734121045f8f3daf562b4 Mon Sep 17 00:00:00 2001 From: Noa Aviel Dove Date: Fri, 12 Apr 2024 18:01:30 -0700 Subject: [PATCH] fixup! [a] Create PFB-based verbatim manifest format for AnVIL (#6040) --- test/service/test_manifest.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/service/test_manifest.py b/test/service/test_manifest.py index 98981c6f6..ff32d7efb 100644 --- a/test/service/test_manifest.py +++ b/test/service/test_manifest.py @@ -1300,7 +1300,10 @@ def test_manifest_content_disposition_header(self): def test_verbatim_jsonl_manifest(self): bundle = self._load_canned_bundle(one(self.bundles())) expected = [ - bundle.metadata_files[d] + { + 'type': d.rsplit('_', 1)[0], + 'contents': bundle.metadata_files[d], + } for d in [ 'cell_suspension_0.json', 'project_0.json', @@ -1312,12 +1315,12 @@ def test_verbatim_jsonl_manifest(self): response = self._get_manifest(ManifestFormat.verbatim_jsonl, {}) self.assertEqual(200, response.status_code) response = [ - json.loads(row)['contents'] + json.loads(row) for row in response.content.decode().splitlines() ] def sort_key(hca_doc: JSON) -> str: - return hca_doc['provenance']['document_id'] + return hca_doc['contents']['provenance']['document_id'] expected.sort(key=sort_key) response.sort(key=sort_key)