@@ -114,7 +114,9 @@ def test_get_queryset_called_on_field(self):
114
114
"""
115
115
116
116
result = self .schema .execute (
117
- query , variables = {"id" : self .reporter .id }, context_value = {"admin" : True },
117
+ query ,
118
+ variables = {"id" : self .reporter .id },
119
+ context_value = {"admin" : True },
118
120
)
119
121
assert not result .errors
120
122
assert result .data == {"reporter" : {"firstName" : "Jane" }}
@@ -149,7 +151,9 @@ def test_get_queryset_called_on_foreignkey(self):
149
151
"""
150
152
151
153
result = self .schema .execute (
152
- query , variables = {"id" : self .articles [0 ].id }, context_value = {"admin" : True },
154
+ query ,
155
+ variables = {"id" : self .articles [0 ].id },
156
+ context_value = {"admin" : True },
153
157
)
154
158
assert not result .errors
155
159
assert result .data ["article" ] == {
@@ -170,7 +174,9 @@ def test_get_queryset_called_on_foreignkey(self):
170
174
"""
171
175
172
176
result = self .schema .execute (
173
- query , variables = {"id" : self .reporter .id }, context_value = {"admin" : True },
177
+ query ,
178
+ variables = {"id" : self .reporter .id },
179
+ context_value = {"admin" : True },
174
180
)
175
181
assert not result .errors
176
182
assert result .data ["reporter" ] == {
0 commit comments