mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-04 01:32:08 +02:00
Admins don't have any participation
This commit is contained in:
@ -552,3 +552,10 @@ class TestAdminForbidden(TestCase):
|
|||||||
"""
|
"""
|
||||||
response = self.client.get(reverse("participation:my_team_detail"))
|
response = self.client.get(reverse("participation:my_team_detail"))
|
||||||
self.assertEqual(response.status_code, 403)
|
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)
|
||||||
|
Reference in New Issue
Block a user