diff options
author | adityacp | 2018-01-02 15:28:47 +0530 |
---|---|---|
committer | adityacp | 2018-01-02 15:28:47 +0530 |
commit | 8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9 (patch) | |
tree | efb9c6aa856157e1ff883631c96b636648445e07 /yaksh/test_views.py | |
parent | b44db042059e69df4c4a948d6dff73604c7abf83 (diff) | |
parent | 7f14d3ef8212b1cd88a9c96a134d2bd5321a4078 (diff) | |
download | online_test-8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9.tar.gz online_test-8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9.tar.bz2 online_test-8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9.zip |
Update to latest changes
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) |