@@ -89,15 +89,13 @@ func (s *performerEditTestRunner) verifyPerformerEditDetails(input models.Perfor
89
89
c := fieldComparator {r : & s .testRunner }
90
90
c .strPtrStrPtr (input .Name , performerDetails .Name , "Name" )
91
91
c .strPtrStrPtr (input .Disambiguation , performerDetails .Disambiguation , "Disambiguation" )
92
+ c .strPtrStrPtr (input .Birthdate , performerDetails .Birthdate , "Birthdate" )
92
93
93
94
assert .DeepEqual (s .t , input .Aliases , performerDetails .AddedAliases )
94
95
assert .Assert (s .t , input .Gender .IsValid () && (input .Gender .String () == * performerDetails .Gender ))
95
96
96
97
s .compareURLs (input .Urls , performerDetails .AddedUrls )
97
98
98
- date , accuracy , _ := models .ParseFuzzyString (input .Birthdate )
99
- assert .Assert (s .t , accuracy .Valid && (accuracy .String == * performerDetails .BirthdateAccuracy ))
100
- assert .Assert (s .t , date .Valid && (date .String == * performerDetails .Birthdate ))
101
99
assert .Assert (s .t , input .Ethnicity .IsValid () && (input .Ethnicity .String () == * performerDetails .Ethnicity ))
102
100
assert .Assert (s .t , input .Country != nil && (* input .Country == * performerDetails .Country ))
103
101
assert .Assert (s .t , input .EyeColor .IsValid () && (input .EyeColor .String () == * performerDetails .EyeColor ))
@@ -142,14 +140,10 @@ func (s *performerEditTestRunner) verifyPerformerEdit(input models.PerformerEdit
142
140
urls , _ := resolver .Urls (s .ctx , performer )
143
141
s .compareURLs (input .Urls , urls )
144
142
145
- date , accuracy , _ := models .ParseFuzzyString (input .Birthdate )
146
-
147
143
if input .Birthdate == nil {
148
- assert .Assert (s .t , ! performer .BirthdateAccuracy .Valid )
149
144
assert .Assert (s .t , ! performer .Birthdate .Valid )
150
145
} else {
151
- assert .Equal (s .t , accuracy .String , performer .BirthdateAccuracy .String )
152
- assert .Equal (s .t , date .String , performer .Birthdate .String )
146
+ assert .Equal (s .t , * input .Birthdate , performer .Birthdate .String )
153
147
}
154
148
155
149
if input .Ethnicity == nil {
0 commit comments