From c666777658068545fce48e5c3f521ee090ac4da1 Mon Sep 17 00:00:00 2001 From: Akash Date: Sun, 15 Oct 2023 17:28:52 +0530 Subject: [PATCH] test: Patient Hostory Settings - change rating quantity --- .../patient_history_settings/test_patient_history_settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcare/healthcare/doctype/patient_history_settings/test_patient_history_settings.py b/healthcare/healthcare/doctype/patient_history_settings/test_patient_history_settings.py index 6f2b1f8eb9..ae4754a0c1 100644 --- a/healthcare/healthcare/doctype/patient_history_settings/test_patient_history_settings.py +++ b/healthcare/healthcare/doctype/patient_history_settings/test_patient_history_settings.py @@ -45,7 +45,7 @@ def test_custom_doctype_medical_record(self): self.assertTrue(medical_rec) medical_rec = frappe.get_doc("Patient Medical Record", medical_rec) - expected_subject = "Date:{0}Rating:3Feedback:Test Patient History Settings".format( + expected_subject = "Date:{0}Rating:0.3Feedback:Test Patient History Settings".format( frappe.utils.format_date(getdate()) ) self.assertEqual(strip_html(medical_rec.subject), expected_subject) @@ -83,7 +83,7 @@ def create_doc(patient): "doctype": "Test Patient Feedback", "patient": patient, "date": getdate(), - "rating": 3, + "rating": 0.3, "feedback": "Test Patient History Settings", } ).insert()