mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 10:22:11 +01:00 
			
		
		
		
	Fix participation detail test (a tournament is required)
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -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"))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user