Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix: move generate course name to the only place it is used
Browse files Browse the repository at this point in the history
  • Loading branch information
ashultz0 committed Jan 13, 2022
1 parent 6ee5302 commit 5330569
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analytics_dashboard/courses/tests/test_views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ def path(self, **kwargs):


class NavAssertMixin:
def generate_course_name(self, course_id):
return 'Test ' + course_id

def assertPrimaryNav(self, nav, course_id):
raise NotImplementedError

Expand Down Expand Up @@ -210,6 +207,9 @@ def test_missing_data(self, course_id):

self.assertValidMissingDataContext(context)

def generate_course_name(self, course_id):
return 'Test ' + course_id

def assertValidCourseName(self, course_id, context):
course_name = self.generate_course_name(course_id)
self.assertEqual(context['course_name'], course_name)
Expand Down

0 comments on commit 5330569

Please sign in to comment.