Skip to content

Commit

Permalink
fix invalid nested string quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Nov 8, 2024
1 parent 522262f commit afca7ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_harmony.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ def test_service_invoke(self):
collection_name = in_message['sources'][0]['collection']

# Sanity checks on metadata
self.assertTrue(data['href'].endswith(f"{datetime.fromisoformat(properties['end_datetime']).strftime("%Y%m%dT%H%M%SZ")}_{collection_name}_merged.nc4"))
self.assertTrue(data['title'].endswith(f"{datetime.fromisoformat(properties['end_datetime']).strftime("%Y%m%dT%H%M%SZ")}_{collection_name}_merged.nc4"))
self.assertTrue(data['href'].endswith(
f"{datetime.fromisoformat(properties['end_datetime']).strftime('%Y%m%dT%H%M%SZ')}_{collection_name}_merged.nc4"
))
self.assertTrue(data['title'].endswith(
f"{datetime.fromisoformat(properties['end_datetime']).strftime('%Y%m%dT%H%M%SZ')}_{collection_name}_merged.nc4"
))
self.assertEqual(data['type'], 'application/x-netcdf4')
self.assertEqual(data['roles'], ['data'])

Expand Down

0 comments on commit afca7ec

Please sign in to comment.