Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Nov 14, 2023
1 parent 6678fd2 commit db6ac73
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/integration/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ def test_metadata_discovery_publish():

# test access of discovery metadata from notification message

countries_and_centre_ids = [
('mw', 'mw_met_centre'),
('it', 'roma_met_centre'),
('dz', 'alger_met_centre'),
('ro', 'rnimh'),
('co', 'brazza_met_centre')
centre_ids = [
'mw-mw_met_centre',
'it-roma_met_centre',
'dz-alger_met_centre',
'ro-rnimh',
'cd-brazza_met_centre'
]

for cacid in countries_and_centre_ids:
for centre_id in centre_ids:
params = {
'q': f'{cacid[0]} AND {cacid[1]} AND metadata'
'q': f'{centre_id} AND metadata'
}

r = SESSION.get(f'{API_URL}/collections/messages/items',
Expand All @@ -133,8 +133,7 @@ def test_metadata_discovery_publish():
assert r['numberMatched'] == 1

feature = r['features'][0]
assert feature['properties']['data_id'].startswith(
f'{cacid[0]}/{cacid[1]}')
assert feature['properties']['data_id'].startswith(centre_id)

link = feature['links'][0]

Expand Down

0 comments on commit db6ac73

Please sign in to comment.