Skip to content

Commit

Permalink
✅ Pass test user task view
Browse files Browse the repository at this point in the history
  • Loading branch information
damm89 committed Feb 22, 2024
1 parent 6fd558d commit 0087abb
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions backend/src/zac/camunda/tests/test_user_task_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,10 +1193,6 @@ def test_put_zet_resultaat_user_task(self, m, *mocks):
"zac.core.camunda.zet_resultaat.serializers.get_all_review_requests_for_zaak",
return_value=[rr],
)
patch_get_reviews_for_zaak = patch(
"zac.core.camunda.zet_resultaat.serializers.get_reviews_for_zaak",
return_value=[],
)
patch_lock_review_request = patch(
"zac.core.camunda.zet_resultaat.serializers.lock_review_request",
)
Expand All @@ -1214,13 +1210,12 @@ def test_put_zet_resultaat_user_task(self, m, *mocks):
with patch_check_document_status as pcds:
with patch_patch_and_destroy_doc as ppdd:
with patch_get_all_review_requests_for_zaak as pgrrfz:
with patch_get_reviews_for_zaak as pgrz:
with patch_lock_review_request as plrr:
with patch_fetch_checklist_object as pfco:
with patch_update_object_record_data as puor:
response = self.client.put(
self.task_endpoint, payload
)
with patch_lock_review_request as plrr:
with patch_fetch_checklist_object as pfco:
with patch_update_object_record_data as puor:
response = self.client.put(
self.task_endpoint, payload
)
self.assertEqual(response.status_code, 204)

activity.refresh_from_db()
Expand All @@ -1233,7 +1228,6 @@ def test_put_zet_resultaat_user_task(self, m, *mocks):
pcds.assert_called_once()
ppdd.assert_called_once()
pgrrfz.assert_called_once()
pgrz.assert_called_once()
plrr.assert_called_once()
pfco.assert_called_once()
puor.assert_called_once()

0 comments on commit 0087abb

Please sign in to comment.