Skip to content
Snippets Groups Projects
Commit 26f4bd8f authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Simplify behavior to avoid confusion

parent 3367377c
No related branches found
No related tags found
No related merge requests found
Pipeline #78692 failed
......@@ -225,4 +225,4 @@ class ElementsWorker(
raise e
logger.debug(f"Updated activity of element {element_id} to {state}")
return out
return True
......@@ -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 [
......
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