@@ -185,11 +185,15 @@ def test_prints_string_field_with_int_arg_with_default():
185
185
186
186
187
187
def 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
+ == """
193
197
schema {
194
198
query: Root
195
199
}
@@ -198,6 +202,7 @@ def test_prints_string_field_with_int_arg_with_default_null():
198
202
singleField(argOne: Int = null): String
199
203
}
200
204
"""
205
+ )
201
206
202
207
203
208
def test_prints_string_field_with_non_null_int_arg ():
@@ -515,22 +520,24 @@ def test_prints_input_type():
515
520
def test_prints_input_type_with_default ():
516
521
InputType = GraphQLInputObjectType (
517
522
name = "InputType" ,
518
- fields = {
519
- "int" : GraphQLInputObjectField (GraphQLInt , default_value = 2 )
520
- }
523
+ fields = {"int" : GraphQLInputObjectField (GraphQLInt , default_value = 2 )},
521
524
)
522
525
523
526
Root = GraphQLObjectType (
524
527
name = "Root" ,
525
528
fields = {
526
- "str" : GraphQLField (GraphQLString , args = {"argOne" : GraphQLArgument (InputType )})
527
- }
529
+ "str" : GraphQLField (
530
+ GraphQLString , args = {"argOne" : GraphQLArgument (InputType )}
531
+ )
532
+ },
528
533
)
529
534
530
535
Schema = GraphQLSchema (Root )
531
536
output = print_for_test (Schema )
532
537
533
- assert output == """
538
+ assert (
539
+ output
540
+ == """
534
541
schema {
535
542
query: Root
536
543
}
@@ -543,27 +550,30 @@ def test_prints_input_type_with_default():
543
550
str(argOne: InputType): String
544
551
}
545
552
"""
553
+ )
546
554
547
555
548
556
def test_prints_input_type_with_default_null ():
549
557
InputType = GraphQLInputObjectType (
550
558
name = "InputType" ,
551
- fields = {
552
- "int" : GraphQLInputObjectField (GraphQLInt , default_value = None )
553
- }
559
+ fields = {"int" : GraphQLInputObjectField (GraphQLInt , default_value = None )},
554
560
)
555
561
556
562
Root = GraphQLObjectType (
557
563
name = "Root" ,
558
564
fields = {
559
- "str" : GraphQLField (GraphQLString , args = {"argOne" : GraphQLArgument (InputType )})
560
- }
565
+ "str" : GraphQLField (
566
+ GraphQLString , args = {"argOne" : GraphQLArgument (InputType )}
567
+ )
568
+ },
561
569
)
562
570
563
571
Schema = GraphQLSchema (Root )
564
572
output = print_for_test (Schema )
565
573
566
- assert output == """
574
+ assert (
575
+ output
576
+ == """
567
577
schema {
568
578
query: Root
569
579
}
@@ -576,6 +586,7 @@ def test_prints_input_type_with_default_null():
576
586
str(argOne: InputType): String
577
587
}
578
588
"""
589
+ )
579
590
580
591
581
592
def test_prints_custom_scalar ():
0 commit comments