Example #1
0
 def setUp(self):
     WithCompleteDatabase.setUp(self)
     self.question_int = Question.objects.create(
         section=self.section,
         subsection=self.subsection,
         number=1,
         question='How old are you?',
         information="",
         response_type='Int',
         editor=self.editor)
     self.question_float = Question.objects.create(
         section=self.section,
         subsection=self.subsection,
         number=2,
         question='How far away is coffee?',
         information="",
         response_type='Float',
         editor=self.editor)
     self.question_text = Question.objects.create(
         section=self.section,
         subsection=self.subsection,
         number=3,
         question='What is your name?',
         information="",
         response_type='Text',
         editor=self.editor)
 def setUp(self):
     WithCompleteDatabase.setUp(self)
     self.question_int = Question.objects.create(
         section=self.section,
         subsection=self.subsection,
         number=1,
         question='How old are you?',
         information="",
         response_type='Int',
         editor=self.editor)
     self.question_float = Question.objects.create(
         section=self.section,
         subsection=self.subsection,
         number=2,
         question='How far away is coffee?',
         information="",
         response_type='Float',
         editor=self.editor)
     self.question_text = Question.objects.create(
         section=self.section,
         subsection=self.subsection,
         number=3,
         question='What is your name?',
         information="",
         response_type='Text',
         editor=self.editor)
Example #3
0
 def setUp(self):
     WithCompleteDatabase.setUp(self)
     self.msg = Message()
     self.selected = Question.objects.all().values_list('id', flat=True)
Example #4
0
 def setUp(self):
     WithCompleteDatabase.setUp(self)
     self.msg = Message()
     self.selected = Question.objects.all().values_list('id', flat=True)