You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
511 B
16 lines
511 B
from django.test import TestCase
|
|
from .factories import PhotoFactory, PhotoSizeFactory
|
|
|
|
|
|
class PhotologueBaseTest(TestCase):
|
|
|
|
def setUp(self):
|
|
self.s = PhotoSizeFactory(name='testPhotoSize',
|
|
width=100,
|
|
height=100)
|
|
self.pl = PhotoFactory(title='Landscape',
|
|
slug='landscape')
|
|
|
|
def tearDown(self):
|
|
# Need to manually remove the files created during testing.
|
|
self.pl.delete()
|
|
|