Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonf committed May 14, 2024
1 parent ba0ca2d commit d2f6496
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lab/experiments/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
)

Expand Down

0 comments on commit d2f6496

Please sign in to comment.