diff options
author | adityacp | 2020-12-04 11:10:12 +0530 |
---|---|---|
committer | adityacp | 2020-12-04 11:10:12 +0530 |
commit | abee2fe4085f42ca3b92192d59150a780a765c26 (patch) | |
tree | fa6321676431fc84beef21279a380760c109504f /stats/tests.py | |
parent | c5b26a3b0d7e29f9813aa4fcdcbcaaa66945b86d (diff) | |
download | online_test-abee2fe4085f42ca3b92192d59150a780a765c26.tar.gz online_test-abee2fe4085f42ca3b92192d59150a780a765c26.tar.bz2 online_test-abee2fe4085f42ca3b92192d59150a780a765c26.zip |
Fix tests
Diffstat (limited to 'stats/tests.py')
-rw-r--r-- | stats/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stats/tests.py b/stats/tests.py index c256feb..540ff4d 100644 --- a/stats/tests.py +++ b/stats/tests.py @@ -131,8 +131,8 @@ class TestTrackLesson(TestCase): self.assertEqual(response_data.get('total'), 1) expected_tracker = list(TrackLesson.objects.filter( user_id=self.student.id, course_id=self.course.id, - lesson_id=self.lesson.id).values_list("id", flat=True)) + lesson_id=self.lesson.id)) obtained_tracker = list(response_data.get( - 'objects').object_list.values_list("id", flat=True)) + 'objects').object_list) self.assertEqual(obtained_tracker, expected_tracker) |