diff --git a/django_lostplaces/lostplaces/tests/models/test_place_image_model.py b/django_lostplaces/lostplaces/tests/models/test_place_image_model.py index d351b66..c1249a7 100644 --- a/django_lostplaces/lostplaces/tests/models/test_place_image_model.py +++ b/django_lostplaces/lostplaces/tests/models/test_place_image_model.py @@ -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') diff --git a/django_lostplaces/lostplaces/tests/models/test_voucher_model.py b/django_lostplaces/lostplaces/tests/models/test_voucher_model.py index 06964d8..56133a9 100644 --- a/django_lostplaces/lostplaces/tests/models/test_voucher_model.py +++ b/django_lostplaces/lostplaces/tests/models/test_voucher_model.py @@ -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__ - ) - )