Self hosted FLOSS fitness/workout, nutrition and weight tracker
After a CRUD operation, check the redirection doen't trigger an error
Roland Geidera461963d1972
diff --git a/wger/manager/tests/testcase.py b/wger/manager/tests/testcase.pyindex 875afd16d..20c22dd8d 100644--- a/wger/manager/tests/testcase.py+++ b/wger/manager/tests/testcase.py@@ -131,6 +131,10 @@ class WorkoutManagerDeleteTestCase(WorkoutManagerTestCase):self.object_class.objects.get,pk=self.pk)+ # The page we are redirected to doesn't trigger an error+ response = self.client.get(response['Location'])+ self.assertEqual(response.status_code, 200)+def test_delete_object_anonymous(self):'''Tests deleting the object as an anonymous user@@ -219,6 +223,10 @@ class WorkoutManagerEditTestCase(WorkoutManagerTestCase):current_field = getattr(entry_after, i)self.compare_fields(current_field, self.data[i])+ # The page we are redirected to doesn't trigger an error+ response = self.client.get(response['Location'])+ self.assertEqual(response.status_code, 200)+def test_edit_object_anonymous(self):'''Tests editing the object as an anonymous user@@ -311,6 +319,10 @@ class WorkoutManagerAddTestCase(WorkoutManagerTestCase):self.assertEqual(count_before + 1, count_after)+ # The page we are redirected to doesn't trigger an error+ response = self.client.get(response['Location'])+ self.assertEqual(response.status_code, 200)+def test_add_object_anonymous(self):'''Tests adding the object as an anonymous user