1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-05 09:54:13 +02:00

Add protected pages to view authorizations

This commit is contained in:
Yohann D'ANELLO
2020-12-30 11:03:12 +01:00
parent 6611c1c896
commit e2e2c97584
3 changed files with 54 additions and 5 deletions

View File

@ -298,7 +298,7 @@ class TestRegistration(TestCase):
self.assertTrue(getattr(self.student.registration, auth_type))
response = self.client.get(reverse(
auth_type, args=(self.student.registration.photo_authorization.name.split('/')[-1],)))
auth_type, args=(getattr(self.student.registration, auth_type).name.split('/')[-1],)))
self.assertEqual(response.status_code, 200)
from participation.models import Team