예제 #1
0
 def setUp(self):
     WithEditor.setUp(self)
     self.culture1 = Culture.objects.create(
         culture='Maori',
         slug='maori', editor=self.editor)
     self.lang = Language.objects.create(language='lname', id=1, editor=self.editor)
     self.client.login(username="******", password="******")
예제 #2
0
 def setUp(self):
     WithEditor.setUp(self)
     culture1 = Culture.objects.create(
         culture='Maori',
         slug='maori',
         editor=self.editor)
     self.url = reverse("culture-edit", kwargs={'slug': culture1.slug})
예제 #3
0
 def setUp(self):
     WithEditor.setUp(self)
     self.culture = Culture.objects.create(
         culture='Maori',
         slug='maori', editor=self.editor)
     self.section = Section.objects.create(
         section="Test",
         slug="test",
         editor=self.editor)
     self.subsection = Section.objects.create(
         section="Sub",
         slug="sub",
         editor=self.editor)
     self.question = OptionQuestion.objects.create(
         id=8,
         number=8,
         question="Belief that inanimate objects have supernatural properties",
         options=dedent("""
         (?) Missing data
         (0) absent
         (1) present
         """),
         section=self.section,
         subsection=self.subsection,
         response_type=Question.RESPONSETYPE_OPTION,
         editor=self.editor)
     self.source = Source.objects.create(
         id=1,
         year=1991,
         author='Smith',
         slug='Smith1991',
         reference='S2',
         comment='c1',
         editor=self.editor)
예제 #4
0
 def setUp(self):
     WithEditor.setUp(self)
     self.culture1 = Culture.objects.create(culture='Maori',
                                            slug='maori',
                                            editor=self.editor)
     self.lang = Language.objects.create(language='lname',
                                         id=1,
                                         editor=self.editor)
     self.client.login(username="******", password="******")
예제 #5
0
 def setUp(self):
     WithEditor.setUp(self)
     self.source1 = Source.objects.create(
         year=1991, author='Greenhill',
         slug='greenhill1991',
         reference='S2',
         comment='c1',
         editor=self.editor)
     self.url = reverse("source-edit", kwargs={'slug': self.source1.slug})
예제 #6
0
 def setUp(self):
     WithEditor.setUp(self)
     self.source1 = Source.objects.create(year=1991,
                                          author='Greenhill',
                                          slug='greenhill1991',
                                          reference='S2',
                                          comment='c1',
                                          editor=self.editor)
     self.url = reverse("source-edit", kwargs={'slug': self.source1.slug})
예제 #7
0
 def setUp(self):
     WithEditor.setUp(self)
     self.source1 = Source.objects.create(year=1991,
                                          author='Greenhill',
                                          slug='greenhill1991',
                                          reference='S2',
                                          comment='c1',
                                          editor=self.editor)
     self.client.login(username="******", password="******")
예제 #8
0
 def setUp(self):
     WithEditor.setUp(self)
     self.source1 = Source.objects.create(
         year=1991,
         author='Greenhill',
         slug='greenhill1991',
         reference='S2',
         comment='c1',
         editor=self.editor)
     self.client.login(username="******", password="******")
예제 #9
0
 def setUp(self):
     WithEditor.setUp(self)
     self.culture = Culture.objects.create(
         culture='Maori', slug='maori', editor=self.editor)
     self.section_one = Section.objects.create(
         section="Test", slug="test", editor=self.editor)
     self.section_two = Section.objects.create(
         section="Example", slug="example", editor=self.editor)
     self.subsection = Section.objects.create(
         section="sub", slug="sub", editor=self.editor)
     self.question_int = Question.objects.create(
         id=1,
         section=self.section_one,
         subsection=self.subsection,
         number=1,
         question='How old are you?',
         information="",
         response_type='Int',
         editor=self.editor)
     self.question_float = Question.objects.create(
         id=2,
         section=self.section_one,
         subsection=self.subsection,
         number=2,
         question='How far away is coffee?',
         information="",
         response_type='Float',
         editor=self.editor)
     self.question_text = Question.objects.create(
         id=3,
         section=self.section_two,
         subsection=self.subsection,
         number=3,
         question='What is your name?',
         information="",
         response_type='Text',
         editor=self.editor)
     self.source = Source.objects.create(
         id=1,
         year=1991,
         author='Smith',
         slug='Smith1991',
         reference='S2',
         comment='c1',
         editor=self.editor)
예제 #10
0
 def setUp(self):
     WithEditor.setUp(self)
     self.source = Source.objects.create(
         year=1991, author='Smith',
         slug='Smith1991', reference='S2',
         comment='c1', editor=self.editor)
     self.culture = Culture.objects.create(
         id=1,
         culture='Maori',
         slug='maori',
         editor=self.editor)
     self.section = Section.objects.create(
         section="Test",
         slug="test",
         editor=self.editor)
     self.subsection = Section.objects.create(
         section="Sub", slug="sub",
         editor=self.editor)
     self.question = Question.objects.create(
         id=1,
         section=self.section,
         subsection=self.subsection,
         number=1, question='Where are you?',
         information="..", editor=self.editor)
예제 #11
0
 def setUp(self):
     WithEditor.setUp(self)
     culture1 = Culture.objects.create(culture='Maori',
                                       slug='maori',
                                       editor=self.editor)
     self.url = reverse("culture-edit", kwargs={'slug': culture1.slug})
예제 #12
0
 def setUp(self):
     WithEditor.setUp(self)
     self.language = self.object(Language, language='lname', isocode='abc')