fix: tests for course description
This commit is contained in:
@@ -14,7 +14,9 @@ class TestExercise(unittest.TestCase):
|
|||||||
course = frappe.get_doc({
|
course = frappe.get_doc({
|
||||||
"doctype": "LMS Course",
|
"doctype": "LMS Course",
|
||||||
"name": "test-course",
|
"name": "test-course",
|
||||||
"title": "Test Course"
|
"title": "Test Course",
|
||||||
|
"short_introduction": "Test Course",
|
||||||
|
"description": "Test Course"
|
||||||
})
|
})
|
||||||
course.insert()
|
course.insert()
|
||||||
e = frappe.get_doc({
|
e = frappe.get_doc({
|
||||||
|
|||||||
@@ -19,7 +19,9 @@ class TestLMSBatchMembership(unittest.TestCase):
|
|||||||
"doctype": "LMS Course",
|
"doctype": "LMS Course",
|
||||||
"name": "test-course",
|
"name": "test-course",
|
||||||
"title": "Test Course",
|
"title": "Test Course",
|
||||||
"short_code": "XX"
|
"short_code": "XX",
|
||||||
|
"short_introduction": "Test Course",
|
||||||
|
"description": "Test Course"
|
||||||
})
|
})
|
||||||
course.insert()
|
course.insert()
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ class TestLMSCourse(unittest.TestCase):
|
|||||||
def new_course(self, title):
|
def new_course(self, title):
|
||||||
doc = frappe.get_doc({
|
doc = frappe.get_doc({
|
||||||
"doctype": "LMS Course",
|
"doctype": "LMS Course",
|
||||||
"title": title
|
"title": title,
|
||||||
|
"short_introduction": title,
|
||||||
|
"description": title
|
||||||
})
|
})
|
||||||
doc.insert()
|
doc.insert()
|
||||||
return doc
|
return doc
|
||||||
|
|||||||
Reference in New Issue
Block a user