Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Nov 8, 2024
1 parent 214a499 commit 963e66a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_harmony.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,8 @@ def test_service_invoke(self):
collection_name = in_message['sources'][0]['collection']

# Sanity checks on metadata
print(f"item_path === f{item_path}")
print(f"properties['end_datetime'] === f{properties['end_datetime']}")
print(f"href === f{data['href']}")
print(f"title === f{data['href']}")
self.assertTrue(unquote(data['href'], encoding='utf-8', errors='replace').endswith(f"{properties['end_datetime']}_{collection_name}_merged.nc4"))
self.assertEqual(unquote(data['title'], encoding='utf-8', errors='replace'), 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')
self.assertEqual(data['roles'], ['data'])

Expand Down

0 comments on commit 963e66a

Please sign in to comment.