From 19d7738a8779712533240c7cfea2a7d17c387df5 Mon Sep 17 00:00:00 2001 From: Hannes Schmidt Date: Fri, 22 Nov 2024 19:31:56 -0800 Subject: [PATCH] Consistent use of / operator on Path instances --- test/pfb_test_case.py | 2 +- test/service/test_manifest.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/pfb_test_case.py b/test/pfb_test_case.py index 6d1f9e4988..552eb82c3c 100644 --- a/test/pfb_test_case.py +++ b/test/pfb_test_case.py @@ -18,7 +18,7 @@ def _assert_pfb_schema(self, schema): def to_json(records): return json.dumps(records, indent=4, sort_keys=True) - results_file = self._data_path('service') / 'manifest/terra/pfb_manifest.schema.json' + results_file = self._data_path('service') / 'manifest' / 'terra' / 'pfb_manifest.schema.json' if results_file.exists(): with open(results_file, 'r') as f: expected_records = json.load(f) diff --git a/test/service/test_manifest.py b/test/service/test_manifest.py index 256e184530..db68b96cc9 100644 --- a/test/service/test_manifest.py +++ b/test/service/test_manifest.py @@ -1364,9 +1364,9 @@ def test_verbatim_jsonl_manifest(self): def test_verbatim_pfb_manifest(self): response = self._get_manifest(ManifestFormat.verbatim_pfb, filters={}) self.assertEqual(200, response.status_code) - with open(self._data_path('service') / 'manifest/verbatim/pfb/hca/pfb_schema.json') as f: + with open(self._data_path('service') / 'manifest' / 'verbatim' / 'pfb' / 'hca' / 'pfb_schema.json') as f: expected_schema = json.load(f) - with open(self._data_path('service') / 'manifest/verbatim/pfb/hca/pfb_entities.json') as f: + with open(self._data_path('service') / 'manifest' / 'verbatim' / 'pfb' / 'hca' / 'pfb_entities.json') as f: expected_entities = json.load(f) self._assert_pfb(expected_schema, expected_entities, response) @@ -2119,9 +2119,9 @@ def hash_entities(entities: dict[EntityReference, JSON]) -> dict[str, JSON]: return all_entities_by_hash.values(), linked_entities_by_hash.values() def test_verbatim_pfb_manifest(self): - with open(self._data_path('service') / 'verbatim/anvil/pfb_schema.json') as f: + with open(self._data_path('service') / 'manifest' / 'verbatim' / 'pfb' / 'anvil' / 'pfb_schema.json') as f: expected_schema = json.load(f) - with open(self._data_path('service') / 'verbatim/anvil/pfb_entities.json') as f: + with open(self._data_path('service') / 'manifest' / 'verbatim' / 'pfb' / 'anvil' / 'pfb_entities.json') as f: expected_entities = json.load(f) def test(filters):