Commit f26c407 1 parent 03c459f commit f26c407 Copy full SHA for f26c407
File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def children():
88
88
89
89
nine_months_ago = today - relativedelta (months = 9 )
90
90
twenty_months_ago = today - relativedelta (months = 20 )
91
-
91
+ fiftyfive_months_ago = today - relativedelta ( months = 55 )
92
92
return [
93
93
# ~9month old child for user (id 3)
94
94
{
@@ -110,8 +110,8 @@ def children():
110
110
},
111
111
# ~5 year old child for admin user (id 1)
112
112
{
113
- "birth_month" : 7 ,
114
- "birth_year" : today .year - 5 ,
113
+ "birth_month" : fiftyfive_months_ago . month ,
114
+ "birth_year" : fiftyfive_months_ago .year ,
115
115
"id" : 3 ,
116
116
"name" : "child3" ,
117
117
"has_image" : True ,
Original file line number Diff line number Diff line change @@ -28,6 +28,4 @@ def test_get_answer_session_child_ages_in_months(session):
28
28
assert len (child_ages ) == 3
29
29
assert child_ages [1 ] == 8
30
30
assert child_ages [2 ] == 8
31
- assert (
32
- child_ages [3 ] in [55 , 56 ]
33
- ) # 55 or 56 months. hacky fix for a recurrent issue with datetime and months of different lengths. TODO: fix that properly in a separate branch.
31
+ assert child_ages [3 ] == 55
You can’t perform that action at this time.
0 commit comments