Self hosted FLOSS fitness/workout, nutrition and weight tracker
Pass data during the tests
Roland Geiderf52c6326fdee
diff --git a/wger/exercises/tests/test_exercise.py b/wger/exercises/tests/test_exercise.pyindex 9d4fb7d3d..5f9107824 100644--- a/wger/exercises/tests/test_exercise.py+++ b/wger/exercises/tests/test_exercise.py@@ -466,6 +466,17 @@ class ExerciseApiTestCase(ApiBaseResourceTestCase):resource = 'exercise'user = Noneresource_updatable = False+ data = {"category": "/api/v1/exercisecategory/1/",+ "comments": [],+ "creation_date": "2013-01-01",+ "description": "Something here",+ "id": 1,+ "language": "/api/v1/language/2/",+ "muscles": [+ "/api/v1/muscle/1/"+ ],+ "name": "foobar",+ "status": "5"}class ExerciseDetailApiTestCase(ApiBaseResourceTestCase):diff --git a/wger/exercises/tests/test_exercise_comments.py b/wger/exercises/tests/test_exercise_comments.pyindex 187a1a9b8..5ced94ec3 100644--- a/wger/exercises/tests/test_exercise_comments.py+++ b/wger/exercises/tests/test_exercise_comments.py@@ -108,6 +108,9 @@ class ExerciseCommentApiTestCase(ApiBaseResourceTestCase):resource = 'exercisecomment'user = Noneresource_updatable = False+ data = {"comment": "a cool comment",+ "exercise": "/api/v1/exercise/1/",+ "id": 1}class ExerciseCommentDetailApiTestCase(ApiBaseResourceTestCase):