Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix tests

Roland Geider610218d83c21
diff --git a/wger/exercises/tests/api/test_exercise_submission_api.py b/wger/exercises/tests/api/test_exercise_submission_api.py
index 0491d0551..40fe9013f 100644
--- a/wger/exercises/tests/api/test_exercise_submission_api.py
+++ b/wger/exercises/tests/api/test_exercise_submission_api.py
@@ -194,7 +194,7 @@ class ExerciseSubmissionApiTestCase(BaseTestCase, ApiBaseTestCase):
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(counts_before, counts_after)
- self.assertIn('language', response.json().get('translations')[0])
+ self.assertIn('language', response.json()['translations']['0'])
def test_unsuccessful_submission_language_mismatch_comment(self):
"""