feat: added a new field to canvas_entry_properties in enrollment email (#36603)
* feat: added a new field to canvas_entry_properties in enrollment email * test: updated test files
This commit is contained in:
@@ -115,6 +115,7 @@ def send_course_enrollment_email(
|
||||
"short_description": course_run.get("short_description"),
|
||||
"pacing_type": course_run.get("pacing_type"),
|
||||
"partner_image_url": owners[0].get("logo_image_url") if owners else "",
|
||||
"org_name": owners[0].get("name") if owners else "",
|
||||
}
|
||||
)
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
|
||||
@@ -85,6 +85,7 @@ class TestCourseEnrollmentEmailTask(ModuleStoreTestCase):
|
||||
return [
|
||||
{
|
||||
"logo_image_url": "https://prod/organization/logos/2cc39992c67a.png",
|
||||
"name": "edX University",
|
||||
}
|
||||
]
|
||||
|
||||
@@ -164,6 +165,7 @@ class TestCourseEnrollmentEmailTask(ModuleStoreTestCase):
|
||||
"short_description": course_run["short_description"],
|
||||
"pacing_type": course_run["pacing_type"],
|
||||
"partner_image_url": self._get_course_owners()[0]["logo_image_url"],
|
||||
"org_name": self._get_course_owners()[0]["name"],
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user