Self hosted FLOSS fitness/workout, nutrition and weight tracker
Updated image upload test cases
MadoctheHadoccdddc3e938da
diff --git a/wger/gallery/tests/test_gallery_image.py b/wger/gallery/tests/test_gallery_image.pyindex 6785e8a7f..7d86492ef 100644--- a/wger/gallery/tests/test_gallery_image.py+++ b/wger/gallery/tests/test_gallery_image.py@@ -53,6 +53,10 @@ class AddGalleryImageNoDateTestCase(WgerAddTestCase):'image': open('wger/exercises/tests/wildschwein.jpg', 'rb'),}+ def post_test_hook(self):+ image = Image.objects.filter(description='No date provided').first()+ self.assertEqual(image.date, datetime.date.today())+class DeleteGalleryImageTestCase(WgerDeleteTestCase):"""Tests deleting a gallery image