mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-06 08:03:54 +02:00
Test photo authorization upload
This commit is contained in:
@ -122,10 +122,19 @@ class TestStudentParticipation(TestCase):
|
||||
self.assertRedirects(response, reverse("participation:team_detail", args=(self.team.pk,)), 302, 200)
|
||||
self.assertTrue(Team.objects.filter(trigram="BBB", participation__problem=3).exists())
|
||||
|
||||
def test_no_myparticipation_redirect_nomyparticipation(self):
|
||||
response = self.client.get(reverse("participation:my_participation_detail"))
|
||||
self.assertTrue(response.status_code, 200)
|
||||
|
||||
def test_participation_detail(self):
|
||||
self.user.registration.team = self.team
|
||||
self.user.registration.save()
|
||||
|
||||
response = self.client.get(reverse("participation:my_participation_detail"))
|
||||
self.assertRedirects(response,
|
||||
reverse("participation:participation_detail", args=(self.team.participation.pk,)),
|
||||
302, 200)
|
||||
|
||||
response = self.client.get(reverse("participation:participation_detail", args=(self.team.participation.pk,)))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
|
Reference in New Issue
Block a user