Skip to content
Snippets Groups Projects
Commit 3f9bd5df authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Bastien Abadie
Browse files

Fix list transcriptions cache test failure in CI only

parent ca020501
No related branches found
No related tags found
1 merge request!375Fix list transcriptions cache test failure in CI only
Pipeline #80502 passed
......@@ -1978,7 +1978,9 @@ def test_list_transcriptions_with_cache(
# Query database through cache
transcriptions = mock_elements_worker_with_cache.list_transcriptions(**filters)
assert transcriptions.count() == len(expected_ids)
for transcription, expected_id in zip(transcriptions.order_by("id"), expected_ids):
for transcription, expected_id in zip(
transcriptions.order_by(CachedTranscription.id), expected_ids
):
assert transcription.id == UUID(expected_id)
# Check the worker never hits the API for elements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment