Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Nov 8, 2024
1 parent 1a75ae6 commit 9965aa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_harmony.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def test_service_invoke(self):
print(f"title === {data['href']}")
print(f"item_href === {item_href}")
print(f"properties === {properties}")
print(f"unquoted href === {unquote(data['href'], encoding='utf-8', errors='replace')}")
self.assertTrue(unquote(data['href'], encoding='utf-8', errors='replace').endswith(f"{properties['end_datetime']}_{collection_name}_merged.nc4"))
self.assertTrue(unquote(data['title'], encoding='utf-8', errors='replace').endswith(f"{properties['end_datetime']}_{collection_name}_merged.nc4"))
self.assertEqual(data['type'], 'application/x-netcdf4')
Expand All @@ -102,7 +103,7 @@ def test_service_invoke(self):
]

path = urlsplit(data['href']).path
dataset = Dataset(path)
dataset = Dataset(unquote(path, encoding='utf-8', errors='replace'))
subset_files = dataset['subset_files'][:].tolist()
subset_files.sort()

Expand Down

0 comments on commit 9965aa3

Please sign in to comment.