From f327c6fb10db67fd4e37c6610d324c48a9eadb95 Mon Sep 17 00:00:00 2001 From: pateljannat Date: Wed, 26 May 2021 12:38:50 +0530 Subject: [PATCH] fix: tests for course description --- community/lms/doctype/exercise/test_exercise.py | 4 +++- .../doctype/lms_batch_membership/test_lms_batch_membership.py | 4 +++- community/lms/doctype/lms_course/test_lms_course.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/community/lms/doctype/exercise/test_exercise.py b/community/lms/doctype/exercise/test_exercise.py index 8ae68e96..c68f3212 100644 --- a/community/lms/doctype/exercise/test_exercise.py +++ b/community/lms/doctype/exercise/test_exercise.py @@ -14,7 +14,9 @@ class TestExercise(unittest.TestCase): course = frappe.get_doc({ "doctype": "LMS Course", "name": "test-course", - "title": "Test Course" + "title": "Test Course", + "short_introduction": "Test Course", + "description": "Test Course" }) course.insert() e = frappe.get_doc({ diff --git a/community/lms/doctype/lms_batch_membership/test_lms_batch_membership.py b/community/lms/doctype/lms_batch_membership/test_lms_batch_membership.py index c0385c17..0463e9a6 100644 --- a/community/lms/doctype/lms_batch_membership/test_lms_batch_membership.py +++ b/community/lms/doctype/lms_batch_membership/test_lms_batch_membership.py @@ -19,7 +19,9 @@ class TestLMSBatchMembership(unittest.TestCase): "doctype": "LMS Course", "name": "test-course", "title": "Test Course", - "short_code": "XX" + "short_code": "XX", + "short_introduction": "Test Course", + "description": "Test Course" }) course.insert() diff --git a/community/lms/doctype/lms_course/test_lms_course.py b/community/lms/doctype/lms_course/test_lms_course.py index 69e78484..db17c8de 100644 --- a/community/lms/doctype/lms_course/test_lms_course.py +++ b/community/lms/doctype/lms_course/test_lms_course.py @@ -15,7 +15,9 @@ class TestLMSCourse(unittest.TestCase): def new_course(self, title): doc = frappe.get_doc({ "doctype": "LMS Course", - "title": title + "title": title, + "short_introduction": title, + "description": title }) doc.insert() return doc