Skip to content

armgit / wger

Public Imported from GitHub
0

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.py
index 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 = None
resource_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.py
index 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 = None
resource_updatable = False
+ data = {"comment": "a cool comment",
+ "exercise": "/api/v1/exercise/1/",
+ "id": 1}
class ExerciseCommentDetailApiTestCase(ApiBaseResourceTestCase):