1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-05 02:06:52 +00:00

Pending teams can change their composition

This commit is contained in:
Yohann D'ANELLO 2020-12-26 19:43:46 +01:00
parent 8f86ea15c8
commit 02c977264d
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -409,12 +409,6 @@ class TestStudentParticipation(TestCase):
self.user.registration.team = self.team
self.user.registration.save()
# Team is pending validation
self.team.participation.valid = False
self.team.participation.save()
response = self.client.post(reverse("participation:team_leave"))
self.assertEqual(response.status_code, 403)
# Team is valid
self.team.participation.valid = True
self.team.participation.save()