Admins don't have any participation

This commit is contained in:
Yohann D'ANELLO 2020-11-03 14:46:00 +01:00
parent 0a3fffe21e
commit 7353ecfd5f
1 changed files with 7 additions and 0 deletions

View File

@ -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)