Skip to content

Commit

Permalink
count based on data_id rather than q=
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Nov 18, 2024
1 parent 6959018 commit 8d25bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_metadata_discovery_publish():
r = SESSION.get(f'{API_URL}/collections/discovery-metadata/items',
params=params).json()

assert r['numberMatched'] == 8
assert r['numberMatched'] == 9

# test access of discovery metadata from notification message

Expand Down Expand Up @@ -310,7 +310,7 @@ def test_message_api():
'int-daycli-test': 30
}
for key, value in counts.items():
url = f'{API_URL}/collections/messages/items?sortby=-datetime&q={key}&limit=1' # noqa
url = f'{API_URL}/collections/messages/items?sortby=-datetime&data_id={key}&limit=1' # noqa
r = SESSION.get(url).json()
assert r['numberMatched'] == value

Expand Down

0 comments on commit 8d25bf4

Please sign in to comment.