File tree 2 files changed +37
-35
lines changed
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():
934
934
some_enum ,
935
935
dedent (
936
936
"""
937
- enum SomeEnum {
938
- FIRST
939
- }
940
- """
937
+ enum SomeEnum {
938
+ FIRST
939
+ }
940
+ """
941
941
),
942
942
)
943
943
expect_extension_ast_nodes (
944
944
some_enum ,
945
945
dedent (
946
946
"""
947
- extend enum SomeEnum {
948
- SECOND
949
- }
947
+ extend enum SomeEnum {
948
+ SECOND
949
+ }
950
950
951
- extend enum SomeEnum {
952
- THIRD
953
- }
954
- """
951
+ extend enum SomeEnum {
952
+ THIRD
953
+ }
954
+ """
955
955
),
956
956
)
957
957
@@ -987,24 +987,24 @@ def correctly_extend_input_object_type():
987
987
some_input ,
988
988
dedent (
989
989
"""
990
- input SomeInput {
991
- first: String
992
- }
993
- """
990
+ input SomeInput {
991
+ first: String
992
+ }
993
+ """
994
994
),
995
995
)
996
996
expect_extension_ast_nodes (
997
997
some_input ,
998
998
dedent (
999
999
"""
1000
- extend input SomeInput {
1001
- second: Int
1002
- }
1000
+ extend input SomeInput {
1001
+ second: Int
1002
+ }
1003
1003
1004
- extend input SomeInput {
1005
- third: Float
1006
- }
1007
- """
1004
+ extend input SomeInput {
1005
+ third: Float
1006
+ }
1007
+ """
1008
1008
),
1009
1009
)
1010
1010
@@ -1188,7 +1188,9 @@ def rejects_invalid_ast():
1188
1188
1189
1189
# This currently does not work because of how extend_schema is implemented
1190
1190
@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
1192
1194
import pickle
1193
1195
1194
1196
# 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():
971
971
dedent (
972
972
"""
973
973
scalar SomeScalar @specifiedBy(url: "http://example.com/foo_spec")
974
-
974
+
975
975
type SomeObject implements SomeInterface & NewInterface & AnotherNewInterface {
976
976
oldField: String
977
977
newField: String
978
978
anotherNewField: String
979
979
}
980
-
980
+
981
981
enum SomeEnum {
982
982
OLD_VALUE
983
983
NEW_VALUE
984
984
ANOTHER_NEW_VALUE
985
985
}
986
-
986
+
987
987
union SomeUnion = SomeObject | NewObject | AnotherNewObject
988
-
988
+
989
989
input SomeInput {
990
990
oldField: String
991
991
newField: String
992
992
anotherNewField: String
993
993
}
994
-
994
+
995
995
""" # noqa: E501
996
996
)
997
997
+ "\n \n "
@@ -1045,12 +1045,12 @@ def extends_interfaces_by_adding_new_fields():
1045
1045
oldField: String
1046
1046
newField: String
1047
1047
}
1048
-
1048
+
1049
1049
interface AnotherInterface implements SomeInterface {
1050
1050
oldField: String
1051
1051
newField: String
1052
1052
}
1053
-
1053
+
1054
1054
type SomeObject implements SomeInterface & AnotherInterface {
1055
1055
oldField: String
1056
1056
newField: String
@@ -1106,16 +1106,16 @@ def extends_interfaces_by_adding_new_implemented_interfaces():
1106
1106
oldField: String
1107
1107
newField: String
1108
1108
}
1109
-
1109
+
1110
1110
type SomeObject implements SomeInterface & AnotherInterface & NewInterface {
1111
1111
oldField: String
1112
1112
newField: String
1113
1113
}
1114
-
1114
+
1115
1115
interface NewInterface {
1116
1116
newField: String
1117
1117
}
1118
- """
1118
+ """ # noqa: E501
1119
1119
),
1120
1120
)
1121
1121
@@ -1494,11 +1494,11 @@ def schema_extension_ast_are_available_from_schema_object():
1494
1494
extend schema {
1495
1495
mutation: Mutation
1496
1496
}
1497
-
1497
+
1498
1498
extend schema {
1499
1499
subscription: Subscription
1500
1500
}
1501
-
1501
+
1502
1502
extend schema @foo
1503
1503
"""
1504
1504
),
You can’t perform that action at this time.
0 commit comments