Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix test

Roland Geider031a65b29cc8
diff --git a/exercises/tests/categories.py b/exercises/tests/categories.py
index 8252723c0..47d338e4f 100644
--- a/exercises/tests/categories.py
+++ b/exercises/tests/categories.py
@@ -108,7 +108,7 @@ class ExerciseCategoryTestCase(WorkoutManagerTestCase):
kwargs={'pk': 3}),
{'name': ''})
- self.assertTrue(response.context['category_form'].errors['name'])
+ self.assertTrue(response.context['form'].errors['name'])
def test_edit_category_unauthorized(self):
"""Test deleting a category by an unauthorized user"""