File tree Expand file tree Collapse file tree 2 files changed +37
-35
lines changed Expand file tree Collapse file tree 2 files changed +37
-35
lines changed Original file line number Diff line number Diff line change @@ -934,24 +934,24 @@ def correctly_extend_enum_type():
934934 some_enum ,
935935 dedent (
936936 """
937- enum SomeEnum {
938- FIRST
939- }
940- """
937+ enum SomeEnum {
938+ FIRST
939+ }
940+ """
941941 ),
942942 )
943943 expect_extension_ast_nodes (
944944 some_enum ,
945945 dedent (
946946 """
947- extend enum SomeEnum {
948- SECOND
949- }
947+ extend enum SomeEnum {
948+ SECOND
949+ }
950950
951- extend enum SomeEnum {
952- THIRD
953- }
954- """
951+ extend enum SomeEnum {
952+ THIRD
953+ }
954+ """
955955 ),
956956 )
957957
@@ -987,24 +987,24 @@ def correctly_extend_input_object_type():
987987 some_input ,
988988 dedent (
989989 """
990- input SomeInput {
991- first: String
992- }
993- """
990+ input SomeInput {
991+ first: String
992+ }
993+ """
994994 ),
995995 )
996996 expect_extension_ast_nodes (
997997 some_input ,
998998 dedent (
999999 """
1000- extend input SomeInput {
1001- second: Int
1002- }
1000+ extend input SomeInput {
1001+ second: Int
1002+ }
10031003
1004- extend input SomeInput {
1005- third: Float
1006- }
1007- """
1004+ extend input SomeInput {
1005+ third: Float
1006+ }
1007+ """
10081008 ),
10091009 )
10101010
@@ -1188,7 +1188,9 @@ def rejects_invalid_ast():
11881188
11891189 # This currently does not work because of how extend_schema is implemented
11901190 @mark .skip (reason = "pickling of schemas is not yet supported" )
1191- def can_pickle_and_unpickle_big_schema (big_schema_sdl ): # noqa: F811
1191+ def can_pickle_and_unpickle_big_schema (
1192+ big_schema_sdl , # noqa: F811
1193+ ): # pragma: no cover
11921194 import pickle
11931195
11941196 # create a schema from the kitchen sink SDL
Original file line number Diff line number Diff line change @@ -971,27 +971,27 @@ def extends_different_types_multiple_times():
971971 dedent (
972972 """
973973 scalar SomeScalar @specifiedBy(url: "http://example.com/foo_spec")
974-
974+
975975 type SomeObject implements SomeInterface & NewInterface & AnotherNewInterface {
976976 oldField: String
977977 newField: String
978978 anotherNewField: String
979979 }
980-
980+
981981 enum SomeEnum {
982982 OLD_VALUE
983983 NEW_VALUE
984984 ANOTHER_NEW_VALUE
985985 }
986-
986+
987987 union SomeUnion = SomeObject | NewObject | AnotherNewObject
988-
988+
989989 input SomeInput {
990990 oldField: String
991991 newField: String
992992 anotherNewField: String
993993 }
994-
994+
995995 """ # noqa: E501
996996 )
997997 + "\n \n "
@@ -1045,12 +1045,12 @@ def extends_interfaces_by_adding_new_fields():
10451045 oldField: String
10461046 newField: String
10471047 }
1048-
1048+
10491049 interface AnotherInterface implements SomeInterface {
10501050 oldField: String
10511051 newField: String
10521052 }
1053-
1053+
10541054 type SomeObject implements SomeInterface & AnotherInterface {
10551055 oldField: String
10561056 newField: String
@@ -1106,16 +1106,16 @@ def extends_interfaces_by_adding_new_implemented_interfaces():
11061106 oldField: String
11071107 newField: String
11081108 }
1109-
1109+
11101110 type SomeObject implements SomeInterface & AnotherInterface & NewInterface {
11111111 oldField: String
11121112 newField: String
11131113 }
1114-
1114+
11151115 interface NewInterface {
11161116 newField: String
11171117 }
1118- """
1118+ """ # noqa: E501
11191119 ),
11201120 )
11211121
@@ -1494,11 +1494,11 @@ def schema_extension_ast_are_available_from_schema_object():
14941494 extend schema {
14951495 mutation: Mutation
14961496 }
1497-
1497+
14981498 extend schema {
14991499 subscription: Subscription
15001500 }
1501-
1501+
15021502 extend schema @foo
15031503 """
15041504 ),
You can’t perform that action at this time.
0 commit comments