Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Workers
Base Worker
Commits
3f9bd5df
Commit
3f9bd5df
authored
1 year ago
by
Yoann Schneider
Committed by
Bastien Abadie
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix list transcriptions cache test failure in CI only
parent
ca020501
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!375
Fix list transcriptions cache test failure in CI only
Pipeline
#80502
passed
1 year ago
Stage: test
Stage: build
Stage: release
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_elements_worker/test_transcriptions.py
+3
-1
3 additions, 1 deletion
tests/test_elements_worker/test_transcriptions.py
with
3 additions
and
1 deletion
tests/test_elements_worker/test_transcriptions.py
+
3
−
1
View file @
3f9bd5df
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment