Removed __str__ repr of Voucher and PlaceImage.
This commit is contained in:
parent
222c97d63c
commit
17b531e181
@ -83,13 +83,6 @@ class PlaceImageTestCase(ModelTestCase):
|
||||
)
|
||||
)
|
||||
|
||||
def test_str(self):
|
||||
self.assertTrue(self.place_image.place.name.lower() in str(self.place_image).lower(),
|
||||
msg='Expecting %s.__str__ to contain the name of the place' % (
|
||||
self.model.__name__
|
||||
)
|
||||
)
|
||||
|
||||
def test_change_filename(self):
|
||||
path = self.place_image.filename.path
|
||||
self.place_image.filename = os.path.join(settings.MEDIA_ROOT, 'im_a_image_changed.jpeg')
|
||||
|
@ -42,11 +42,3 @@ class VoucheTestCase(ModelTestCase):
|
||||
field_class=models.DateTimeField,
|
||||
must_not_have={'auto_now_add': True}
|
||||
)
|
||||
|
||||
def test_str(self):
|
||||
self.assertTrue(
|
||||
self.voucher.code.lower() in str(self.voucher).lower(),
|
||||
msg='Expecting %s.__str__ to contain the voucher code' % (
|
||||
self.model.__name__
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user