Ejemplo n.º 1
0
 def setUp(self):
     '''
     Create some dummy data using the ModelMixin, to make sure that the queries
     are actually matching, given the data.
     '''
     ModelMixin.setUp(self)
     self.photo1 = self.create_photo(self.user, self.project, file_name='2013-07-04 16.56.55.jpg', point=Point(-122.246, 37.896))
     self.photo2 = self.create_photo(self.user, self.project, file_name='2013-06-30 18.25.38.jpg', point=Point(-122.846, 37.396),
                                     device='SCH-I535', tags=['a','b','c'])
Ejemplo n.º 2
0
    def setUp(self):
        ModelMixin.setUp(self)
        #self.urls = ['/api/0/tags/']
        #self.view = views.TagList.as_view()
        #self.metadata = { }

        #create 1 photo and 1 audio object:
        self.photo = self.create_photo(self.user, self.project, tags=['cat', 'dog', 'horse'])
        self.audio = self.create_audio(self.user, self.project, tags=['mouse', 'rat', 'cat'])
Ejemplo n.º 3
0
    def setUp(self):
        ModelMixin.setUp(self)
        #self.urls = ['/api/0/tags/']
        #self.view = views.TagList.as_view()
        #self.metadata = { }

        #create 1 photo and 1 audio object:
        self.photo = self.create_photo(self.user,
                                       self.project,
                                       tags=['cat', 'dog', 'horse'])
        self.audio = self.create_audio(self.user,
                                       self.project,
                                       tags=['mouse', 'rat', 'cat'])
Ejemplo n.º 4
0
 def setUp(self):
     '''
     Create some dummy data using the ModelMixin, to make sure that the queries
     are actually matching, given the data.
     '''
     ModelMixin.setUp(self)
     self.photo1 = self.create_photo(self.user,
                                     self.project,
                                     file_name='2013-07-04 16.56.55.jpg',
                                     point=Point(-122.246, 37.896))
     self.photo2 = self.create_photo(self.user,
                                     self.project,
                                     file_name='2013-06-30 18.25.38.jpg',
                                     point=Point(-122.846, 37.396),
                                     device='SCH-I535',
                                     tags=['a', 'b', 'c'])