Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francisvaut committed May 23, 2024
1 parent f44cebc commit 24f3c8b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions backend/api/tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,14 @@ def test_submission_status_non_empty_groups(self):
# Only two of the three created groups contain at least one student
self.assertEqual(
content_json["status"],
{"non_empty_groups": 2, "groups_submitted": 0, "extra_checks_passed": 0, "structure_checks_passed": 0},
{
"non_empty_groups": 2,
"groups_submitted": 0,
'has_extra_checks': False,
'has_structure_checks': False,
"extra_checks_passed": 0,
"structure_checks_passed": 0
},
)

def test_submission_status_groups_submitted_and_not_passed_checks(self):
Expand Down Expand Up @@ -891,7 +898,14 @@ def test_submission_status_groups_submitted_and_not_passed_checks(self):

self.assertEqual(
content_json["status"],
{"non_empty_groups": 3, "groups_submitted": 2, "extra_checks_passed": 0, "structure_checks_passed": 0},
{
"non_empty_groups": 3,
"groups_submitted": 2,
'has_extra_checks': False,
'has_structure_checks': False,
"extra_checks_passed": 0,
"structure_checks_passed": 0
},
)

def test_retrieve_list_submissions(self):
Expand Down

0 comments on commit 24f3c8b

Please sign in to comment.