@@ -118,18 +118,18 @@ def test_custom_field_base_model_serializer_data(self) -> None:
118118 "multiple_date_value" : ["2000-01-01" , "2001-01-01" ],
119119 "choice_value" : {
120120 "id" : self .choice_1 .id ,
121- "text " : None ,
121+ "label " : None ,
122122 "value" : "2000-01-01" ,
123123 },
124124 "multiple_choice_value" : [
125125 {
126126 "id" : self .multiple_choice_1 .id ,
127- "text " : None ,
127+ "label " : None ,
128128 "value" : "2000-01-01" ,
129129 },
130130 {
131131 "id" : self .multiple_choice_2 .id ,
132- "text " : None ,
132+ "label " : None ,
133133 "value" : "2001-01-01" ,
134134 },
135135 ],
@@ -174,13 +174,13 @@ def test_custom_field_base_model_serializer_create(self) -> None:
174174 )
175175 self .assertEqual (
176176 instance .choice_value ,
177- {"id" : self .choice_1 .id , "text " : None , "value" : "2000-01-01" },
177+ {"id" : self .choice_1 .id , "label " : None , "value" : "2000-01-01" },
178178 )
179179 self .assertEqual (
180180 instance .multiple_choice_value ,
181181 [
182- {"id" : self .multiple_choice_1 .id , "text " : None , "value" : "2000-01-01" },
183- {"id" : self .multiple_choice_2 .id , "text " : None , "value" : "2001-01-01" },
182+ {"id" : self .multiple_choice_1 .id , "label " : None , "value" : "2000-01-01" },
183+ {"id" : self .multiple_choice_2 .id , "label " : None , "value" : "2001-01-01" },
184184 ],
185185 )
186186
@@ -214,18 +214,18 @@ def test_custom_field_base_model_serializer_update(self) -> None:
214214 "multiple_date_value" : ["2000-01-01" , "2001-01-01" ],
215215 "choice_value" : {
216216 "id" : self .choice_1 .id ,
217- "text " : None ,
217+ "label " : None ,
218218 "value" : "2000-01-01" ,
219219 },
220220 "multiple_choice_value" : [
221221 {
222222 "id" : self .multiple_choice_1 .id ,
223- "text " : None ,
223+ "label " : None ,
224224 "value" : "2000-01-01" ,
225225 },
226226 {
227227 "id" : self .multiple_choice_2 .id ,
228- "text " : None ,
228+ "label " : None ,
229229 "value" : "2001-01-01" ,
230230 },
231231 ],
@@ -246,18 +246,18 @@ def test_custom_field_base_model_serializer_update(self) -> None:
246246 "multiple_date_value" : ["2002-01-01" , "2003-01-01" ],
247247 "choice_value" : {
248248 "id" : self .choice_2 .id ,
249- "text " : None ,
249+ "label " : None ,
250250 "value" : "2000-01-01" ,
251251 },
252252 "multiple_choice_value" : [
253253 {
254254 "id" : self .multiple_choice_1 .id ,
255- "text " : None ,
255+ "label " : None ,
256256 "value" : "2000-01-01" ,
257257 },
258258 {
259259 "id" : self .multiple_choice_3 .id ,
260- "text " : None ,
260+ "label " : None ,
261261 "value" : "2002-01-01" ,
262262 },
263263 ],
@@ -284,13 +284,13 @@ def test_custom_field_base_model_serializer_update(self) -> None:
284284 )
285285 self .assertEqual (
286286 instance .choice_value ,
287- {"id" : self .choice_2 .id , "text " : None , "value" : "2001-01-01" },
287+ {"id" : self .choice_2 .id , "label " : None , "value" : "2001-01-01" },
288288 )
289289 self .assertEqual (
290290 instance .multiple_choice_value ,
291291 [
292- {"id" : self .multiple_choice_1 .id , "text " : None , "value" : "2000-01-01" },
293- {"id" : self .multiple_choice_3 .id , "text " : None , "value" : "2002-01-01" },
292+ {"id" : self .multiple_choice_1 .id , "label " : None , "value" : "2000-01-01" },
293+ {"id" : self .multiple_choice_3 .id , "label " : None , "value" : "2002-01-01" },
294294 ],
295295 )
296296
@@ -324,18 +324,18 @@ def test_custom_field_base_model_serializer_partial_update(self) -> None:
324324 "multiple_date_value" : ["2000-01-01" , "2001-01-01" ],
325325 "choice_value" : {
326326 "id" : self .choice_1 .id ,
327- "text " : None ,
327+ "label " : None ,
328328 "value" : "2000-01-01" ,
329329 },
330330 "multiple_choice_value" : [
331331 {
332332 "id" : self .multiple_choice_1 .id ,
333- "text " : None ,
333+ "label " : None ,
334334 "value" : "2000-01-01" ,
335335 },
336336 {
337337 "id" : self .multiple_choice_2 .id ,
338- "text " : None ,
338+ "label " : None ,
339339 "value" : "2001-01-01" ,
340340 },
341341 ],
@@ -369,7 +369,7 @@ def test_custom_field_base_model_serializer_partial_update(self) -> None:
369369 )
370370 self .assertEqual (
371371 instance .choice_value ,
372- {"id" : self .choice_1 .id , "text " : None , "value" : "2000-01-01" },
372+ {"id" : self .choice_1 .id , "label " : None , "value" : "2000-01-01" },
373373 )
374374 self .assertEqual (instance .multiple_choice_value , [])
375375
0 commit comments