From 7353ecfd5fba13df8f2744b0c5e0e76f6f86fe63 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 3 Nov 2020 14:46:00 +0100 Subject: [PATCH] Admins don't have any participation --- apps/participation/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/participation/tests.py b/apps/participation/tests.py index 2459276..eee362f 100644 --- a/apps/participation/tests.py +++ b/apps/participation/tests.py @@ -552,3 +552,10 @@ class TestAdminForbidden(TestCase): """ response = self.client.get(reverse("participation:my_team_detail")) self.assertEqual(response.status_code, 403) + + def test_my_participation_forbidden(self): + """ + Ensure that an admin can't access to "My participation". + """ + response = self.client.get(reverse("participation:my_participation_detail")) + self.assertEqual(response.status_code, 403)