From 55603ba73a120bc1a004f1a93e8bb820cd8edfca Mon Sep 17 00:00:00 2001 From: eugena Date: Sat, 22 Aug 2015 22:48:57 +0500 Subject: [PATCH] new sitting isn't allowed with empty question set (adaptation of tests) --- quiz/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quiz/tests.py b/quiz/tests.py index 1b18905..d8b2d7b 100644 --- a/quiz/tests.py +++ b/quiz/tests.py @@ -458,6 +458,9 @@ class TestQuestionMarking(TestCase): self.question1 = MCQuestion.objects.create(id=1, content='squawk') self.question1.quiz.add(self.quiz1) + self.question2 = MCQuestion.objects.create(id=2, content='shriek') + self.question2.quiz.add(self.quiz2) + self.answer1 = Answer.objects.create(id=123, question=self.question1, content='bing', -- 2.39.5