File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def test_contains_correct_payload():
147
147
}
148
148
}
149
149
'''
150
- expected = {
150
+ expected1 = {
151
151
'__type' : {
152
152
'name' : 'SimpleMutationPayload' ,
153
153
'kind' : 'OBJECT' ,
@@ -174,9 +174,36 @@ def test_contains_correct_payload():
174
174
]
175
175
}
176
176
}
177
+ expected2 = {
178
+ '__type' : {
179
+ 'name' : 'SimpleMutationPayload' ,
180
+ 'kind' : 'OBJECT' ,
181
+ 'fields' : [
182
+ {
183
+ 'name' : 'result' ,
184
+ 'type' : {
185
+ 'name' : 'Int' ,
186
+ 'kind' : 'SCALAR' ,
187
+ 'ofType' : None
188
+ }
189
+ },
190
+ {
191
+ 'name' : 'clientMutationId' ,
192
+ 'type' : {
193
+ 'name' : None ,
194
+ 'kind' : 'NON_NULL' ,
195
+ 'ofType' : {
196
+ 'name' : 'String' ,
197
+ 'kind' : 'SCALAR'
198
+ }
199
+ }
200
+ },
201
+ ]
202
+ }
203
+ }
177
204
result = graphql (schema , query )
178
205
assert result .errors == None
179
- assert result .data == expected
206
+ assert result .data == expected1 or result . data == expected2
180
207
181
208
def test_contains_correct_field ():
182
209
query = '''
You can’t perform that action at this time.
0 commit comments