From 17637ff0b9ff8b9f2dfba0a430297c505fed376f Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 3 Sep 2020 22:32:28 +0200 Subject: [PATCH] more test --- .../lostplaces_app/tests/models/test_place_image_model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lostplaces/lostplaces_app/tests/models/test_place_image_model.py b/lostplaces/lostplaces_app/tests/models/test_place_image_model.py index 9093982..bd1bf41 100644 --- a/lostplaces/lostplaces_app/tests/models/test_place_image_model.py +++ b/lostplaces/lostplaces_app/tests/models/test_place_image_model.py @@ -50,3 +50,6 @@ class TestPlaceImage(TestSubmittable, TestCase): ) ) + def test_str(self): + place_image = mock_place_image() + self.assertEqual(str(place_image), ' '.join([place_image.place.name, str(place_image.pk)]))