Пример #1
0
    def setUp(self):
        super(TestPhoto, self).setUp()

        # fixtures
        create_photo_formats(self)

        create_photo(self)
Пример #2
0
    def setUp(self):
        super(TestPhoto, self).setUp()

        # fixtures
        create_photo_formats(self)

        create_photo(self)
Пример #3
0
 def setUp(self):
     super(TestFormatForm, self).setUp()
     create_photo_formats(self)
     self.other_site = Site.objects.create(name='other', domain='other.com')
     self.data = dict(name="basic",
                      max_width=20,
                      max_height=20,
                      flexible_height=False,
                      stretch=False,
                      nocrop=False,
                      resample_quality=85,
                      sites=[])
Пример #4
0
 def setUp(self):
     super(TestFormatForm, self).setUp()
     create_photo_formats(self)
     self.other_site = Site.objects.create(name='other', domain='other.com')
     self.data = dict(
         name="basic",
         max_width=20,
         max_height=20,
         flexible_height=False,
         stretch=False,
         nocrop=False,
         resample_quality=85,
         sites=[]
     )
Пример #5
0
 def setUp(self):
     super(TestImgParsing, self).setUp()
     create_photo_formats(self)
Пример #6
0
 def setUp(self):
     super(TestImgParsing, self).setUp()
     create_photo_formats(self)