Skip to content

Commit

Permalink
fix: test submission metadata serializers upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
nandodev-net committed Oct 23, 2023
1 parent 1306b27 commit b347841
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lms/djangoapps/ora_staff_grader/tests/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ class TestSubmissionMetadataSerializer(TestCase):
"submissionUuid": "a",
"username": "foo",
"teamName": "",
'email': None,
'fullname': None,
"dateSubmitted": "1969-07-16 13:32:00",
"dateGraded": "None",
"gradedBy": "",
Expand All @@ -249,6 +251,8 @@ class TestSubmissionMetadataSerializer(TestCase):
"b": {
"submissionUuid": "b",
"username": "",
'email': None,
'fullname': None,
"teamName": "bar",
"dateSubmitted": "1969-07-20 20:17:40",
"dateGraded": "None",
Expand All @@ -260,6 +264,8 @@ class TestSubmissionMetadataSerializer(TestCase):
"c": {
"submissionUuid": "c",
"username": "baz",
'email': None,
'fullname': None,
"teamName": "",
"dateSubmitted": "1969-07-21 21:35:00",
"dateGraded": "1969-07-24 16:44:00",
Expand Down Expand Up @@ -291,6 +297,8 @@ def test_empty_score(self):
submission = {
"submissionUuid": "empty-score",
"username": "WOPR",
'email': None,
'fullname': None,
"dateSubmitted": "1983-06-03 00:00:00",
"dateGraded": None,
"gradedBy": None,
Expand All @@ -302,6 +310,8 @@ def test_empty_score(self):
expected_output = {
"submissionUUID": "empty-score",
"username": "WOPR",
'email': None,
'fullname': None,
"teamName": None,
"dateSubmitted": "1983-06-03 00:00:00",
"dateGraded": None,
Expand Down

0 comments on commit b347841

Please sign in to comment.