Skip to content

Commit bfd6fd7

Browse files
authored
Merge pull request #802 from sebdiem/sdr/fix_black_formatting
fix black formatting
2 parents 4346832 + 1eae96f commit bfd6fd7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

graphene/types/tests/test_mutation.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ class MyMutation(ObjectType):
152152

153153
def test_mutation_as_subclass():
154154
class BaseCreateUser(Mutation):
155-
156155
class Arguments:
157156
name = String()
158157

@@ -162,7 +161,6 @@ def mutate(self, info, **args):
162161
return args
163162

164163
class CreateUserWithPlanet(BaseCreateUser):
165-
166164
class Arguments(BaseCreateUser.Arguments):
167165
planet = String()
168166

@@ -178,17 +176,14 @@ class Query(ObjectType):
178176
a = String()
179177

180178
schema = Schema(query=Query, mutation=MyMutation)
181-
result = schema.execute(''' mutation mymutation {
179+
result = schema.execute(
180+
""" mutation mymutation {
182181
createUserWithPlanet(name:"Peter", planet: "earth") {
183182
name
184183
planet
185184
}
186185
}
187-
''')
186+
"""
187+
)
188188
assert not result.errors
189-
assert result.data == {
190-
'createUserWithPlanet': {
191-
'name': 'Peter',
192-
'planet': 'earth',
193-
}
194-
}
189+
assert result.data == {"createUserWithPlanet": {"name": "Peter", "planet": "earth"}}

0 commit comments

Comments
 (0)