Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2024
1 parent 56d5b13 commit db4be03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion courses/sync_external_courses/emeritus_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class BaseKeyMap(Enum):
"""
Base class for external course sync keys with common attributes.
"""

DATE_FORMAT = "%Y-%m-%d"
REQUIRED_FIELDS = [
"course_title",
Expand All @@ -44,13 +45,14 @@ class BaseKeyMap(Enum):
COURSE_PAGE_SUBHEAD = "Delivered in collaboration with Emeritus."
WHO_SHOULD_ENROLL_PAGE_HEADING = "WHO SHOULD ENROLL"
LEARNING_OUTCOMES_PAGE_HEADING = "WHAT YOU WILL LEARN"

@property
def COURSE_PAGE_SUBHEAD(self):
"""
Generate the course page sub heading dynamically based on the platform name.
"""
return f"Delivered in collaboration with {self.PLATFORM_NAME}."

@property
def LEARNING_OUTCOMES_PAGE_SUBHEAD(self):
"""
Expand All @@ -62,6 +64,8 @@ def LEARNING_OUTCOMES_PAGE_SUBHEAD(self):
"a page where you can download the brochure and apply to the program via "
f"{self.PLATFORM_NAME}."
)


class EmeritusKeyMap(BaseKeyMap):
"""
Emeritus course sync keys.
Expand Down

0 comments on commit db4be03

Please sign in to comment.