diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e0c0dd01..c2897717 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,7 +6,7 @@ Change Log in this file. It adheres to the structure of https://keepachangelog.com/ , but in reStructuredText instead of Markdown (for ease of incorporation into Sphinx documentation and the PyPI description). - + This project adheres to Semantic Versioning (https://semver.org/). .. There should always be an "Unreleased" section for changes pending release. @@ -14,6 +14,11 @@ Change Log Unreleased ~~~~~~~~~~ +[0.6.2] - 2022-04-07 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +* Change dashboard/course about render exceptions naming for clarity + [0.6.1] - 2022-04-07 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/openedx_filters/learning/filters.py b/openedx_filters/learning/filters.py index 6ae1a4dc..b479c6ab 100644 --- a/openedx_filters/learning/filters.py +++ b/openedx_filters/learning/filters.py @@ -275,7 +275,7 @@ def __init__(self, message, redirect_to=""): """ super().__init__(message, redirect_to=redirect_to) - class RenderAlternativeCourseAbout(OpenEdxFilterException): + class RenderInvalidCourseAbout(OpenEdxFilterException): """ Custom class used to stop the course about rendering process. """ @@ -348,7 +348,7 @@ def __init__(self, message, redirect_to=""): """ super().__init__(message, redirect_to=redirect_to) - class RenderAlternativeDashboard(OpenEdxFilterException): + class RenderInvalidDashboard(OpenEdxFilterException): """ Custom class used to stop the dashboard render process. """ diff --git a/openedx_filters/learning/tests/test_filters.py b/openedx_filters/learning/tests/test_filters.py index 3f61f567..6b3a7dc0 100644 --- a/openedx_filters/learning/tests/test_filters.py +++ b/openedx_filters/learning/tests/test_filters.py @@ -310,7 +310,7 @@ def test_dashboard_render_started(self): @data( (DashboardRenderStarted.RedirectToPage, {"redirect_to": "custom-dashboard.html"}), ( - DashboardRenderStarted.RenderAlternativeDashboard, + DashboardRenderStarted.RenderInvalidDashboard, { "dashboard_template": "custom-dasboard.html", "template_context": {"user": Mock()}, @@ -333,7 +333,7 @@ def test_halt_dashboard_render(self, dashboard_exception, attributes): @data( (CourseAboutRenderStarted.RedirectToPage, {"redirect_to": "custom-course-about.html"}), ( - CourseAboutRenderStarted.RenderAlternativeCourseAbout, + CourseAboutRenderStarted.RenderInvalidCourseAbout, { "course_about_template": "custom-course-about.html", "template_context": {"course_id": Mock()},