From 1b602523a5122e13ee375361f0a5402d2611fa8e Mon Sep 17 00:00:00 2001 From: Noa Aviel Dove Date: Fri, 12 Apr 2024 17:23:43 -0700 Subject: [PATCH] fixup! Include `replica_type` in JSONL manifest --- 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 592a131f6..52c6c239c 100644 --- a/test/service/test_manifest.py +++ b/test/service/test_manifest.py @@ -2044,13 +2044,16 @@ def test_jsonl_manifest(self): response = self._get_manifest(ManifestFormat.verbatim_jsonl, filters={}) self.assertEqual(200, response.status_code) manifest = [ - json.loads(row)['contents'] + json.loads(row) for row in response.content.decode().splitlines() ] expected = [ - entity + { + 'type': 'anvil_' + entity_ref.entity_type, + 'contents': entity, + } for bundle in self.bundles() - for entity in self._load_canned_bundle(bundle).entities.values() + for entity_ref, entity in self._load_canned_bundle(bundle).entities.items() ] def sort_key(anvil_doc):