1
0
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:
Yohann D'ANELLO
2020-09-27 18:40:45 +02:00
parent 84a7ec6fb5
commit 5c76e5f0db
3 changed files with 42 additions and 1 deletions

View File

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