@@ -185,11 +185,15 @@ def test_prints_string_field_with_int_arg_with_default():
185185
186186
187187def test_prints_string_field_with_int_arg_with_default_null ():
188- output = print_single_field_schema (GraphQLField (
189- type = GraphQLString ,
190- args = {"argOne" : GraphQLArgument (GraphQLInt , default_value = None )}
191- ))
192- assert output == """
188+ output = print_single_field_schema (
189+ GraphQLField (
190+ type = GraphQLString ,
191+ args = {"argOne" : GraphQLArgument (GraphQLInt , default_value = None )},
192+ )
193+ )
194+ assert (
195+ output
196+ == """
193197schema {
194198 query: Root
195199}
@@ -198,6 +202,7 @@ def test_prints_string_field_with_int_arg_with_default_null():
198202 singleField(argOne: Int = null): String
199203}
200204"""
205+ )
201206
202207
203208def test_prints_string_field_with_non_null_int_arg ():
@@ -515,22 +520,24 @@ def test_prints_input_type():
515520def test_prints_input_type_with_default ():
516521 InputType = GraphQLInputObjectType (
517522 name = "InputType" ,
518- fields = {
519- "int" : GraphQLInputObjectField (GraphQLInt , default_value = 2 )
520- }
523+ fields = {"int" : GraphQLInputObjectField (GraphQLInt , default_value = 2 )},
521524 )
522525
523526 Root = GraphQLObjectType (
524527 name = "Root" ,
525528 fields = {
526- "str" : GraphQLField (GraphQLString , args = {"argOne" : GraphQLArgument (InputType )})
527- }
529+ "str" : GraphQLField (
530+ GraphQLString , args = {"argOne" : GraphQLArgument (InputType )}
531+ )
532+ },
528533 )
529534
530535 Schema = GraphQLSchema (Root )
531536 output = print_for_test (Schema )
532537
533- assert output == """
538+ assert (
539+ output
540+ == """
534541schema {
535542 query: Root
536543}
@@ -543,27 +550,30 @@ def test_prints_input_type_with_default():
543550 str(argOne: InputType): String
544551}
545552"""
553+ )
546554
547555
548556def test_prints_input_type_with_default_null ():
549557 InputType = GraphQLInputObjectType (
550558 name = "InputType" ,
551- fields = {
552- "int" : GraphQLInputObjectField (GraphQLInt , default_value = None )
553- }
559+ fields = {"int" : GraphQLInputObjectField (GraphQLInt , default_value = None )},
554560 )
555561
556562 Root = GraphQLObjectType (
557563 name = "Root" ,
558564 fields = {
559- "str" : GraphQLField (GraphQLString , args = {"argOne" : GraphQLArgument (InputType )})
560- }
565+ "str" : GraphQLField (
566+ GraphQLString , args = {"argOne" : GraphQLArgument (InputType )}
567+ )
568+ },
561569 )
562570
563571 Schema = GraphQLSchema (Root )
564572 output = print_for_test (Schema )
565573
566- assert output == """
574+ assert (
575+ output
576+ == """
567577schema {
568578 query: Root
569579}
@@ -576,6 +586,7 @@ def test_prints_input_type_with_default_null():
576586 str(argOne: InputType): String
577587}
578588"""
589+ )
579590
580591
581592def test_prints_custom_scalar ():
0 commit comments