1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-09 10:10:19 +02:00

We can only register during the first phase

This commit is contained in:
Yohann D'ANELLO
2020-11-15 01:40:20 +01:00
parent ece1e800ab
commit d3e18a8fbb
4 changed files with 31 additions and 7 deletions

View File

@ -575,7 +575,7 @@ class TestStudentParticipation(TestCase):
for i in range(1, 5):
Phase.objects.filter(phase_number=i).update(start=timezone.now() + timedelta(days=2 * i),
end=timezone.now() + timedelta(days=2 * i + 1))
self.assertEqual(Phase.current_phase().phase_number, 1)
self.assertEqual(Phase.current_phase(), None)
# We are after the end
for i in range(1, 5):