def _test(): form, case = _save_form_and_case(self) process_indicators_for_case(['mvp_indicators'], case.domain, case.to_json()) updated_form = IndicatorXForm.get(form._id) self.addCleanup(updated_form.delete) computed = updated_form.computed_['mvp_indicators'] self.assertEqual(29, len(computed)) self.assertEqual('child_visit_form', computed['child_visit_form']['value']) process_indicators_for_form(['mvp_indicators'], form.domain, form.to_json()) updated_form = IndicatorXForm.get(form._id) updated_computed = updated_form.computed_['mvp_indicators'] self.assertEqual(29, len(updated_computed)) self.assertEqual('child_visit_form', updated_computed['child_visit_form']['value'])
def _test(): form, case = _save_form_and_case(self) process_indicators_for_case(['mvp_indicators'], case.domain, case.to_json()) updated_form = IndicatorXForm.get(form._id) self.addCleanup(updated_form.delete) computed = updated_form.computed_['mvp_indicators'] self.assertEqual(29, len(computed)) self.assertEqual('child_visit_form', computed['child_visit_form']['value']) process_indicators_for_form(['mvp_indicators'], form.domain, form.to_json()) updated_form = IndicatorXForm.get(form._id) updated_computed = updated_form.computed_['mvp_indicators'] self.assertEqual(29, len(updated_computed)) self.assertEqual('child_visit_form', updated_computed['child_visit_form']['value'])