Skip to content
Snippets Groups Projects
Commit 82bd28fc authored by Dominik Seeger's avatar Dominik Seeger :ghost: Committed by Jakob Dieterle
Browse files

fixed tests

parent 75617d53
No related branches found
No related tags found
1 merge request!244Resolve "Make exam a many to many field on StudentInfo model"
......@@ -142,12 +142,16 @@ class ExportInstanceTest(APITestCase):
self.assertIn('tests', instance['students'][1]['submissions'][0])
# students[submissions][feedback] nested
<<<<<<< HEAD
<<<<<<< HEAD
submissions = instance['students'][0]['submissions']
=======
# TODO something is actually wrong with feedback in exports
submissions = instance['students'][1]['submissions']
>>>>>>> removed class-method in StudentInfo, working on fix in StudentJsonExport
=======
submissions = instance['students'][0]['submissions']
>>>>>>> fixed tests
self.assertIn('feedback', submissions[0])
self.assertLess(0, len(submissions[0]['feedback']))
self.assertEqual(5, submissions[0]['feedback']['score'])
......
......@@ -40,6 +40,7 @@ class StudentJSONExport(APIView):
'Name': student.user.fullname,
'Username': student.user.username,
'Email': student.user.email,
<<<<<<< HEAD
<<<<<<< HEAD
'Exams': ExamInfoSerializer(student.exams.all(), many=True).data,
'Password': passwords[student.user.pk] if set_passwords else '********',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment