From 2e574d065990b346844c2d63480af620c5e5275c Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 11 Feb 2024 23:38:32 +0100 Subject: [PATCH] Fix participation detail test (a tournament is required) Signed-off-by: Emmy D'Anello --- participation/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/participation/tests.py b/participation/tests.py index 4fd57e6..8750f8b 100644 --- a/participation/tests.py +++ b/participation/tests.py @@ -438,6 +438,7 @@ class TestStudentParticipation(TestCase): self.user.registration.save() # Team is valid + self.team.participation.tournament = self.tournament self.team.participation.valid = True self.team.participation.save() response = self.client.post(reverse("participation:team_leave")) @@ -479,6 +480,7 @@ class TestStudentParticipation(TestCase): reverse("participation:participation_detail", args=(self.team.participation.pk,)), 302, 403) + self.team.participation.tournament = self.tournament self.team.participation.valid = True self.team.participation.save() response = self.client.get(reverse("participation:my_participation_detail"))