diff options
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index d65fe8e..ad5b714 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -497,7 +497,7 @@ class TestMonitor(TestCase): creator=self.user ) self.learning_unit = LearningUnit.objects.create( - order=1, learning_type="quiz", quiz=self.quiz) + order=1, type="quiz", quiz=self.quiz) self.learning_module = LearningModule.objects.create( order=1, name="test module", description="test", creator=self.user, check_prerequisite=False) @@ -671,7 +671,7 @@ class TestGradeUser(TestCase): creator=self.user ) self.learning_unit = LearningUnit.objects.create( - order=1, learning_type="quiz", quiz=self.quiz) + order=1, type="quiz", quiz=self.quiz) self.learning_module = LearningModule.objects.create( order=1, name="test module", description="test", creator=self.user, check_prerequisite=False) @@ -877,7 +877,7 @@ class TestDownloadAssignment(TestCase): description='demo_quiz', pass_criteria=40 ) self.learning_unit = LearningUnit.objects.create( - order=1, learning_type="quiz", quiz=self.quiz) + order=1, type="quiz", quiz=self.quiz) self.learning_module = LearningModule.objects.create( order=1, name="test module", description="test", creator=self.user, check_prerequisite=False) @@ -3877,7 +3877,7 @@ class TestQuestionPaper(TestCase): ) self.learning_unit = LearningUnit.objects.create( - order=1, learning_type="quiz", quiz=self.quiz) + order=1, type="quiz", quiz=self.quiz) self.learning_module = LearningModule.objects.create( order=1, name="test module", description="module", check_prerequisite=False, creator=self.user) @@ -4329,12 +4329,12 @@ class TestLearningModule(TestCase): self.lesson = Lesson.objects.create( name="test lesson", description="test description", creator=self.user) - # create quiz leanring unit + # create quiz learning unit self.learning_unit = LearningUnit.objects.create( - order=0, learning_type="quiz", quiz=self.quiz) - # create lesson leanring unit + order=0, type="quiz", quiz=self.quiz) + # create lesson learning unit self.learning_unit1 = LearningUnit.objects.create( - order=1, learning_type="lesson", lesson=self.lesson) + order=1, type="lesson", lesson=self.lesson) # create learning module self.learning_module = LearningModule.objects.create( order=0, name="test module", description="module", @@ -4473,7 +4473,7 @@ class TestLearningModule(TestCase): self.assertTemplateUsed(response, 'yaksh/add_module.html') learning_unit = self.learning_module1.learning_unit.all().first() self.assertEqual(self.quiz, learning_unit.quiz) - self.assertEqual(learning_unit.learning_type, "quiz") + self.assertEqual(learning_unit.type, "quiz") self.assertEqual(learning_unit.order, 1) # Test change order of learning unit @@ -4677,7 +4677,7 @@ class TestLessons(TestCase): name="test lesson", description="test description", creator=self.user) self.learning_unit = LearningUnit.objects.create( - order=0, learning_type="lesson", lesson=self.lesson) + order=0, type="lesson", lesson=self.lesson) self.learning_module = LearningModule.objects.create( order=0, name="test module", description="module", check_prerequisite=False, creator=self.user) |