mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-21 20:38:22 +02:00
Get ZIP archive of all authorizations of one team
This commit is contained in:
@ -170,6 +170,14 @@ class TestRegistration(TestCase):
|
||||
args=(self.student.registration.photo_authorization.name.split('/')[-1],)))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
from participation.models import Team
|
||||
team = Team.objects.create(name="Test", trigram="TES")
|
||||
self.student.registration.team = team
|
||||
self.student.registration.save()
|
||||
response = self.client.get(reverse("participation:team_authorizations", args=(team.pk,)))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response["content-type"], "application/zip")
|
||||
|
||||
self.student.registration.photo_authorization.delete()
|
||||
|
||||
def test_string_render(self):
|
||||
|
Reference in New Issue
Block a user