@@ -327,6 +327,10 @@ def defines_an_object_type_with_deprecated_field():
327327 assert deprecated_field .deprecation_reason == "A terrible reason"
328328 assert deprecated_field .type is ScalarType
329329 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
330334
331335 def accepts_an_object_type_with_output_type_as_field ():
332336 # this is a shortcut syntax for simple fields
@@ -348,6 +352,11 @@ def accepts_an_object_type_with_a_field_function():
348352 assert field .type is ScalarType
349353 assert field .args == {}
350354 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
351360
352361 def thunk_for_fields_of_object_type_is_resolved_only_once ():
353362 def fields ():
@@ -378,6 +387,11 @@ def accepts_an_object_type_with_field_args():
378387 assert arg .default_value is INVALID
379388 assert arg .ast_node is None
380389 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
381395
382396 def accepts_an_object_type_with_list_interfaces ():
383397 obj_type = GraphQLObjectType ("SomeObject" , {}, [InterfaceType ])
@@ -1024,7 +1038,11 @@ def accepts_an_input_object_type_with_fields():
10241038 assert list (input_obj_type .fields ) == ["f" ]
10251039 input_field = input_obj_type .fields ["f" ]
10261040 assert isinstance (input_field , GraphQLInputField )
1041+ assert input_field .description is None
10271042 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
10281046
10291047 def accepts_an_input_object_type_with_input_type_as_field ():
10301048 # this is a shortcut syntax for simple input fields
@@ -1042,7 +1060,11 @@ def accepts_an_input_object_type_with_a_field_function():
10421060 assert list (input_obj_type .fields ) == ["f" ]
10431061 input_field = input_obj_type .fields ["f" ]
10441062 assert isinstance (input_field , GraphQLInputField )
1063+ assert input_field .description is None
10451064 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
10461068
10471069 def rejects_an_input_object_type_with_incorrect_fields ():
10481070 input_obj_type = GraphQLInputObjectType ("SomeInputObject" , [])
0 commit comments