Skip to content

Commit

Permalink
fix: change assertEqual to assertGreaterEqual in response numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
jignaciopm committed Nov 25, 2024
1 parent b2086c7 commit 993e721
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eox_core/api/v1/tests/integration/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1529,9 +1529,9 @@ def test_get_grades_for_user_successfully(self, extra_params: dict):
if extra_params["detailed"]:
self.assertIn("section_breakdown", response_content)
for detail_grade in response_content["section_breakdown"]:
self.assertEqual(0.0, detail_grade["percent"])
self.assertEqual(0.0, detail_grade["score_earned"])
self.assertEqual(0.0, detail_grade["score_possible"])
self.assertGreaterEqual(detail_grade["percent"], 0.0)
self.assertGreaterEqual(detail_grade["score_earned"], 0.0)
self.assertGreaterEqual(detail_grade["score_possible"], 0.0)
self.assertFalse(detail_grade["attempted"])
self.assertIn("assignment_type", detail_grade)
self.assertIn("subsection_name", detail_grade)
Expand All @@ -1543,8 +1543,8 @@ def test_get_grades_for_user_successfully(self, extra_params: dict):
self.assertIn("grader", response_content["grading_policy"])
self.assertIn("grade_cutoffs", response_content["grading_policy"])
for detail_grade in response_content["grading_policy"]["grader"]:
self.assertEqual(1, detail_grade["count"])
self.assertEqual(0, detail_grade["dropped"])
self.assertGreaterEqual(detail_grade["count"], 0)
self.assertGreaterEqual(detail_grade["dropped"], 0)
self.assertIn("assignment_type", detail_grade)
self.assertIn("weight", detail_grade)
else:
Expand Down

0 comments on commit 993e721

Please sign in to comment.