Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add exercise image API GET test
Roland Geider01de4e532e83
diff --git a/wger/exercises/tests/test_exercise_images.py b/wger/exercises/tests/test_exercise_images.pyindex 82736d195..0520b0e33 100644--- a/wger/exercises/tests/test_exercise_images.py+++ b/wger/exercises/tests/test_exercise_images.py@@ -17,6 +17,7 @@ from django.core.files import Filefrom django.urls import reverse# wger+from wger.core.tests import api_base_testfrom wger.core.tests.base_testcase import (WgerAddTestCase,WgerDeleteTestCase,@@ -142,15 +143,13 @@ class DeleteExerciseImageTestCase(WgerDeleteTestCase):pk = 1-# TODO: fix test-# class ExerciseImagesApiTestCase(api_base_test.ApiBaseResourceTestCase):-# """-# Tests the exercise image overview resource-# """-# pk = 1-# resource = ExerciseImage-# private_resource = False-# special_endpoints = ('thumbnails',)-# data = {'is_main': 'true',-# 'exercise': '1',-# 'id': 1}+# TODO: add POST and DELETE tests+class ExerciseImagesApiTestCase(api_base_test.BaseTestCase,+ api_base_test.ApiBaseTestCase,+ api_base_test.ApiGetTestCase):+ """+ Tests the exercise image resource+ """+ pk = 1+ private_resource = False+ resource = ExerciseImage