summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-12-03 15:10:56 +0530
committerGitHub2016-12-03 15:10:56 +0530
commitf416da9901ebca437c100bb80511eb87544f709d (patch)
treed63c7ce7e5f6d1c97d401d317a5211837fb011aa /yaksh/test_models.py
parent7fab5de07a05cf8f84e7beb8b4c166c0398172be (diff)
parentf76c6c7aab4df2f743259334aa91ca295cb854ee (diff)
downloadonline_test-f416da9901ebca437c100bb80511eb87544f709d.tar.gz
online_test-f416da9901ebca437c100bb80511eb87544f709d.tar.bz2
online_test-f416da9901ebca437c100bb80511eb87544f709d.zip
Merge pull request #161 from adityacp/quiz_instructions_editable
Quiz instructions editable
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index e7f3016..1aeffb6 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -46,7 +46,7 @@ def setUpModule():
attempts_allowed=1, time_between_attempts=0,
description='demo quiz', pass_criteria=0,
language='Python', prerequisite=None,
- course=course)
+ course=course, instructions="Demo Instructions")
Quiz.objects.create(start_date_time=datetime(2014, 10, 9, 10, 8, 15, 0,
tzinfo=pytz.utc),
@@ -56,7 +56,7 @@ def setUpModule():
attempts_allowed=-1, time_between_attempts=0,
description='demo quiz', pass_criteria=40,
language='Python', prerequisite=quiz,
- course=course)
+ course=course, instructions="Demo Instructions")
with open('/tmp/test.txt', 'wb') as f:
f.write('2'.encode('ascii'))
@@ -239,6 +239,7 @@ class QuizTestCases(unittest.TestCase):
self.assertEqual(self.quiz1.language, 'Python')
self.assertEqual(self.quiz1.pass_criteria, 0)
self.assertEqual(self.quiz1.prerequisite, None)
+ self.assertEqual(self.quiz1.instructions, "Demo Instructions")
def test_is_expired(self):
self.assertFalse(self.quiz1.is_expired())