diff options
author | ankitjavalkar | 2019-04-08 16:12:50 +0530 |
---|---|---|
committer | ankitjavalkar | 2019-04-09 12:59:47 +0530 |
commit | 54e674c12704013377b9dd6b6c82df526f4e1cdb (patch) | |
tree | 64fac43ea99189bae9c689cce489c1043c0e07ee /yaksh/test_models.py | |
parent | e1eedca03401223e51ef26ae166a2319c5c89eee (diff) | |
download | online_test-54e674c12704013377b9dd6b6c82df526f4e1cdb.tar.gz online_test-54e674c12704013377b9dd6b6c82df526f4e1cdb.tar.bz2 online_test-54e674c12704013377b9dd6b6c82df526f4e1cdb.zip |
Fix PEP8 issues
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index d4e0141..1adf64a 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -153,25 +153,35 @@ class LearningModuleTestCases(unittest.TestCase): self.course_status = CourseStatus.objects.get( course=self.course, user=self.student) - self.prereq_course = Course.objects.create(name="Prerequisite Course", - enrollment="Enroll Request", creator=self.creator) - + self.prereq_course = Course.objects.create( + name="Prerequisite Course", + enrollment="Enroll Request", creator=self.creator + ) self.prereq_learning_module = LearningModule.objects.create( name='LM3', description='module one', creator=self.creator - ) + ) self.test_learning_module = LearningModule.objects.create( - name='LM4', description='module two', creator=self.creator, order=1 - ) + name='LM4', description='module two', + creator=self.creator, order=1 + ) course_status = CourseStatus.objects.create( course=self.prereq_course, user=self.student ) - lesson = Lesson.objects.create(name='P1', description='Video Lesson', - creator=self.creator) - learning_unit_lesson = LearningUnit.objects.create(order=2, lesson=lesson, - type='lesson') - learning_unit_quiz = LearningUnit.objects.create(order=1, quiz=self.quiz, - type='quiz') + lesson = Lesson.objects.create( + name='P1', description='Video Lesson', + creator=self.creator + ) + learning_unit_lesson = LearningUnit.objects.create( + order=2, + lesson=lesson, + type='lesson' + ) + learning_unit_quiz = LearningUnit.objects.create( + order=1, + quiz=self.quiz, + type='quiz' + ) self.prereq_learning_module.learning_unit.add(learning_unit_quiz) self.prereq_learning_module.learning_unit.add(learning_unit_lesson) self.prereq_learning_module.save() |