1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-03 19:22:51 +02:00

Don't request too many authorizations for remote tournaments

This commit is contained in:
Yohann D'ANELLO
2021-01-23 19:57:25 +01:00
parent 4dd3c105fe
commit 2bd6988c6a
8 changed files with 223 additions and 182 deletions

View File

@ -292,6 +292,8 @@ class TestStudentParticipation(TestCase):
self.assertEqual(resp.status_code, 200)
self.assertFalse(resp.context["can_validate"])
self.team.participation.tournament = self.tournament
self.team.participation.save()
self.team.motivation_letter = "i_am_motivated.pdf"
self.team.save()
resp = self.client.get(reverse("participation:team_detail", args=(self.team.pk,)))