diff options
author | Palaparthy Adityachandra | 2020-03-17 15:06:18 +0530 |
---|---|---|
committer | GitHub | 2020-03-17 15:06:18 +0530 |
commit | 15ce39acb70056bdfb9820efa634d704a963cb84 (patch) | |
tree | b54a2d7493be2ba3e9249ae4412c9c231ffaef6b /yaksh/test_models.py | |
parent | a5e2fb409beebdc33fdb7c230dd50559509fd4c0 (diff) | |
parent | a2186d263aa8927a47fdb9f3a23ad39841b64b33 (diff) | |
download | online_test-15ce39acb70056bdfb9820efa634d704a963cb84.tar.gz online_test-15ce39acb70056bdfb9820efa634d704a963cb84.tar.bz2 online_test-15ce39acb70056bdfb9820efa634d704a963cb84.zip |
Merge pull request #660 from adityacp/fix_course_progress_download_csv
Add a button to download course progress in a CSV
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index 6e5a26d..a60a1d6 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -322,8 +322,12 @@ class LearningUnitTestCases(unittest.TestCase): def test_learning_unit(self): self.assertEqual(self.learning_unit_one.type, 'lesson') self.assertEqual(self.learning_unit_two.type, 'quiz') - self.assertEqual(self.learning_unit_one.lesson, self.lesson) - self.assertEqual(self.learning_unit_two.quiz, self.quiz) + self.assertEqual( + self.learning_unit_one.get_lesson_or_quiz(), self.lesson + ) + self.assertEqual( + self.learning_unit_two.get_lesson_or_quiz(), self.quiz + ) self.assertIsNone(self.learning_unit_one.quiz) self.assertIsNone(self.learning_unit_two.lesson) self.assertTrue(self.learning_unit_one.check_prerequisite) |