@@ -327,6 +327,10 @@ def defines_an_object_type_with_deprecated_field():
327
327
assert deprecated_field .deprecation_reason == "A terrible reason"
328
328
assert deprecated_field .type is ScalarType
329
329
assert deprecated_field .args == {}
330
+ assert deprecated_field .ast_node is None
331
+ assert deprecated_field .resolve is None
332
+ assert deprecated_field .subscribe is None
333
+ assert deprecated_field .description is None
330
334
331
335
def accepts_an_object_type_with_output_type_as_field ():
332
336
# this is a shortcut syntax for simple fields
@@ -348,6 +352,11 @@ def accepts_an_object_type_with_a_field_function():
348
352
assert field .type is ScalarType
349
353
assert field .args == {}
350
354
assert field .is_deprecated is False
355
+ assert field .deprecation_reason is None
356
+ assert field .ast_node is None
357
+ assert field .resolve is None
358
+ assert field .subscribe is None
359
+ assert field .description is None
351
360
352
361
def thunk_for_fields_of_object_type_is_resolved_only_once ():
353
362
def fields ():
@@ -378,6 +387,11 @@ def accepts_an_object_type_with_field_args():
378
387
assert arg .default_value is INVALID
379
388
assert arg .ast_node is None
380
389
assert field .is_deprecated is False
390
+ assert field .deprecation_reason is None
391
+ assert field .ast_node is None
392
+ assert field .resolve is None
393
+ assert field .subscribe is None
394
+ assert field .description is None
381
395
382
396
def accepts_an_object_type_with_list_interfaces ():
383
397
obj_type = GraphQLObjectType ("SomeObject" , {}, [InterfaceType ])
@@ -1024,7 +1038,11 @@ def accepts_an_input_object_type_with_fields():
1024
1038
assert list (input_obj_type .fields ) == ["f" ]
1025
1039
input_field = input_obj_type .fields ["f" ]
1026
1040
assert isinstance (input_field , GraphQLInputField )
1041
+ assert input_field .description is None
1027
1042
assert input_field .type is ScalarType
1043
+ assert input_field .default_value is INVALID
1044
+ assert input_field .ast_node is None
1045
+ assert input_field .out_name is None
1028
1046
1029
1047
def accepts_an_input_object_type_with_input_type_as_field ():
1030
1048
# this is a shortcut syntax for simple input fields
@@ -1042,7 +1060,11 @@ def accepts_an_input_object_type_with_a_field_function():
1042
1060
assert list (input_obj_type .fields ) == ["f" ]
1043
1061
input_field = input_obj_type .fields ["f" ]
1044
1062
assert isinstance (input_field , GraphQLInputField )
1063
+ assert input_field .description is None
1045
1064
assert input_field .type is ScalarType
1065
+ assert input_field .default_value is INVALID
1066
+ assert input_field .ast_node is None
1067
+ assert input_field .out_name is None
1046
1068
1047
1069
def rejects_an_input_object_type_with_incorrect_fields ():
1048
1070
input_obj_type = GraphQLInputObjectType ("SomeInputObject" , [])
0 commit comments