File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
graphene_django/rest_framework/tests Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -288,25 +288,16 @@ class SomeCreateSerializerMutation(SerializerMutation):
288
288
class Meta :
289
289
serializer_class = ListViewChoiceFieldSerializer
290
290
291
+ choice_type = {
292
+ "choice_type" : SomeCreateSerializerMutation .Input .choice_type .type .get ("ASDF" )
293
+ }
291
294
result = SomeCreateSerializerMutation .mutate_and_get_payload (
292
- None ,
293
- mock_info (),
294
- ** {
295
- "choice_type" : SomeCreateSerializerMutation .Input .choice_type .type .get (
296
- "ASDF"
297
- )
298
- }
295
+ None , mock_info (), ** choice_type
299
296
)
300
297
assert result .errors is None
301
298
assert result .choice_type == MyFakeModelWithChoiceField .ChoiceType .ASDF .name
302
299
kwargs = SomeCreateSerializerMutation .get_serializer_kwargs (
303
- None ,
304
- mock_info (),
305
- ** {
306
- "choice_type" : SomeCreateSerializerMutation .Input .choice_type .type .get (
307
- "ASDF"
308
- )
309
- }
300
+ None , mock_info (), ** choice_type
310
301
)
311
302
assert (
312
303
kwargs ["data" ]["choice_type" ] == MyFakeModelWithChoiceField .ChoiceType .ASDF .name
You can’t perform that action at this time.
0 commit comments