From d2f649635cda1a16fee482d001e08d9776a232a1 Mon Sep 17 00:00:00 2001 From: bbonf Date: Tue, 14 May 2024 14:03:41 +0200 Subject: [PATCH] fixed tests --- lab/experiments/test_views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lab/experiments/test_views.py b/lab/experiments/test_views.py index 0efb788f..3a272637 100644 --- a/lab/experiments/test_views.py +++ b/lab/experiments/test_views.py @@ -24,7 +24,10 @@ def setUpTestData(cls): cls.experiment = Experiment.objects.create() cls.experiment.leaders.add(cls.user) - cls.participant = Participant.objects.create(dyslexic_parent=Participant.WhichParent.UNKNOWN) + cls.participant = Participant.objects.create( + birth_date=datetime(2021, 4, 1), + dyslexic_parent=Participant.WhichParent.UNKNOWN + ) def setUp(self): self.factory = APIRequestFactory() @@ -109,6 +112,7 @@ def setUpTestData(cls): cls.experiment.leaders.add(cls.user) cls.participant = Participant.objects.create( + birth_date=datetime(2021, 4, 1), dyslexic_parent=Participant.WhichParent.NEITHER, )