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
26f4bd8f
Commit
26f4bd8f
authored
3 years ago
by
Valentin Rigal
Browse files
Options
Downloads
Patches
Plain Diff
Simplify behavior to avoid confusion
parent
3367377c
No related branches found
No related tags found
No related merge requests found
Pipeline
#78692
failed
3 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex_worker/worker/__init__.py
+1
-1
1 addition, 1 deletion
arkindex_worker/worker/__init__.py
tests/test_elements_worker/test_worker.py
+1
-5
1 addition, 5 deletions
tests/test_elements_worker/test_worker.py
with
2 additions
and
6 deletions
arkindex_worker/worker/__init__.py
+
1
−
1
View file @
26f4bd8f
...
...
@@ -225,4 +225,4 @@ class ElementsWorker(
raise
e
logger
.
debug
(
f
"
Updated activity of element
{
element_id
}
to
{
state
}
"
)
return
out
return
True
This diff is collapsed.
Click to expand it.
tests/test_elements_worker/test_worker.py
+
1
−
5
View file @
26f4bd8f
...
...
@@ -131,11 +131,7 @@ def test_update_call(responses, mock_elements_worker, mock_process_api):
out
=
mock_elements_worker
.
update_activity
(
"
1234-deadbeef
"
,
ActivityState
.
Processed
)
# Check the response received by worker
assert
out
==
{
"
element_id
"
:
"
1234-deadbeef
"
,
"
process_id
"
:
"
aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeffff
"
,
"
state
"
:
"
processed
"
,
}
assert
out
==
True
assert
len
(
responses
.
calls
)
==
len
(
BASE_API_CALLS
)
+
1
assert
[
...
...
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