From: eugena Date: Sat, 22 Aug 2015 17:48:57 +0000 (+0500) Subject: new sitting isn't allowed with empty question set (adaptation of tests) X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=55603ba73a120bc1a004f1a93e8bb820cd8edfca;p=django_quiz.git new sitting isn't allowed with empty question set (adaptation of tests) --- 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',