Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add gallery image no date test case.
MadoctheHadoc9ed9fca5d3fc
diff --git a/wger/gallery/tests/test_gallery_image.py b/wger/gallery/tests/test_gallery_image.pyindex 505bb7e5b..6785e8a7f 100644--- a/wger/gallery/tests/test_gallery_image.py+++ b/wger/gallery/tests/test_gallery_image.py@@ -38,6 +38,20 @@ class AddGalleryImageTestCase(WgerAddTestCase):'image': open('wger/exercises/tests/protestschwein.jpg', 'rb'),}+class AddGalleryImageNoDateTestCase(WgerAddTestCase):+ """+ Tests adding an image to the gallery+ """++ object_class = Image+ url = 'gallery:images:add'+ user_fail = False+ data = {+ # No date+ 'user': 1,+ 'description': 'No date provided',+ 'image': open('wger/exercises/tests/wildschwein.jpg', 'rb'),+ }class DeleteGalleryImageTestCase(WgerDeleteTestCase):"""