diff options
author | adityacp | 2020-03-31 14:46:19 +0530 |
---|---|---|
committer | adityacp | 2020-03-31 14:46:19 +0530 |
commit | 541f3ec154f7c484a2a9105565117cefa4e15b18 (patch) | |
tree | 38d3a54689f3c03b8c1eb55789bf61893aff9a44 /yaksh/test_views.py | |
parent | 8007fa364ce894a879f72d72c104e7fe49e7154f (diff) | |
download | online_test-541f3ec154f7c484a2a9105565117cefa4e15b18.tar.gz online_test-541f3ec154f7c484a2a9105565117cefa4e15b18.tar.bz2 online_test-541f3ec154f7c484a2a9105565117cefa4e15b18.zip |
Update the units and modules order on creation
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index 6f28add..8f811c5 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -1103,6 +1103,12 @@ class TestAddQuiz(TestCase): is_exercise=True, description='demo exercise', creator=self.user ) + unit1 = LearningUnit.objects.create( + type="quiz", quiz=self.quiz, order=1) + unit2 = LearningUnit.objects.create( + type="quiz", quiz=self.exercise, order=2) + self.module.learning_unit.add(*[unit1.id, unit2.id]) + def tearDown(self): self.client.logout() self.user.delete() |