Skip to content

Commit

Permalink
Consistent use of / operator on Path instances
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-ucsc committed Nov 23, 2024
1 parent 7bdaea5 commit 19d7738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/pfb_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions test/service/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 19d7738

Please sign in to comment.