Removed __str__ repr of Voucher and PlaceImage.

This commit is contained in:
Marcus Scholz 2020-09-18 21:26:05 +02:00
parent 222c97d63c
commit 17b531e181
2 changed files with 0 additions and 15 deletions

View File

@ -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')

View File

@ -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__
)
)