Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Feb 21, 2023
1 parent 1640d1e commit 70c770c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dashboard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def paid_but_missed_deadline(self, course_run):
return True
return False

def has_passed_course_run_run(self, edx_course_key):
def has_passed_course_run(self, edx_course_key):
"""
Returns whether the user has passed a course run.
Expand Down
4 changes: 2 additions & 2 deletions seed_data/management/commands/alter_data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_set_to_passed(self, course_run_program_type):
grade = Decimal('0.75')
set_to_passed(user=self.user, course_run=course_run, grade=grade)
mmtrack = get_mmtrack(self.user, course_run.course.program)
assert mmtrack.has_passed_course(course_run.edx_course_key)
assert mmtrack.has_passed_course_run(course_run.edx_course_key)
assert int(mmtrack.get_final_grade_percent(course_run.edx_course_key)) == (grade * 100)

@ddt.data('fa', 'non_fa')
Expand All @@ -45,7 +45,7 @@ def test_set_to_failed(self, course_run_program_type):
grade = Decimal('0.55')
set_to_failed(user=self.user, course_run=course_run, grade=grade)
mmtrack = get_mmtrack(self.user, course_run.course.program)
assert not mmtrack.has_passed_course(course_run.edx_course_key)
assert not mmtrack.has_passed_course_run(course_run.edx_course_key)
assert int(mmtrack.get_final_grade_percent(course_run.edx_course_key)) == (grade * 100)

@ddt.data('fa', 'non_fa')
Expand Down

0 comments on commit 70c770c

Please sign in to comment.