Skip to content

Commit

Permalink
update doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Sep 18, 2023
1 parent fc3f02b commit 11ff0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onadata/apps/api/tests/viewsets/test_xform_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -5752,7 +5752,7 @@ def test_regenerates_instance_json(self, mock_regenerate):

@patch("onadata.apps.api.viewsets.xform_viewset.regenerate_form_instance_json")
def test_regenerates_instance_json_no_duplicate_work(self, mock_regenerate):
"""If a regeneration has already been run, we do not run it again"""
"""If a regeneration finished successfully, we do not run it again"""
self.xform.is_instance_json_regenerated = True
self.xform.save()
request = self.factory.get("/", **self.extra)
Expand Down Expand Up @@ -5787,7 +5787,7 @@ def _mock_get_task_meta_non_failure(self) -> dict[str, str]:
@patch.object(AsyncResult, "_get_task_meta", _mock_get_task_meta_non_failure)
@patch("onadata.apps.api.viewsets.xform_viewset.regenerate_form_instance_json")
def test_task_state_not_failed(self, mock_regenerate):
"""We do not regenerate if celery task is in a state other than FAILURE
"""We do not regenerate if last celery task is in a state other than FAILURE
FAILURE is the only state that should trigger regeneration if a regeneration
had earlier been triggered
Expand Down

0 comments on commit 11ff0c4

Please sign in to comment.