mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 11:33:55 +03:00
fix black formatting
This commit is contained in:
parent
4346832f71
commit
1eae96fd43
|
@ -152,7 +152,6 @@ def test_mutation_allow_to_have_custom_args():
|
||||||
|
|
||||||
def test_mutation_as_subclass():
|
def test_mutation_as_subclass():
|
||||||
class BaseCreateUser(Mutation):
|
class BaseCreateUser(Mutation):
|
||||||
|
|
||||||
class Arguments:
|
class Arguments:
|
||||||
name = String()
|
name = String()
|
||||||
|
|
||||||
|
@ -162,7 +161,6 @@ def test_mutation_as_subclass():
|
||||||
return args
|
return args
|
||||||
|
|
||||||
class CreateUserWithPlanet(BaseCreateUser):
|
class CreateUserWithPlanet(BaseCreateUser):
|
||||||
|
|
||||||
class Arguments(BaseCreateUser.Arguments):
|
class Arguments(BaseCreateUser.Arguments):
|
||||||
planet = String()
|
planet = String()
|
||||||
|
|
||||||
|
@ -178,17 +176,14 @@ def test_mutation_as_subclass():
|
||||||
a = String()
|
a = String()
|
||||||
|
|
||||||
schema = Schema(query=Query, mutation=MyMutation)
|
schema = Schema(query=Query, mutation=MyMutation)
|
||||||
result = schema.execute(''' mutation mymutation {
|
result = schema.execute(
|
||||||
|
""" mutation mymutation {
|
||||||
createUserWithPlanet(name:"Peter", planet: "earth") {
|
createUserWithPlanet(name:"Peter", planet: "earth") {
|
||||||
name
|
name
|
||||||
planet
|
planet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
''')
|
"""
|
||||||
|
)
|
||||||
assert not result.errors
|
assert not result.errors
|
||||||
assert result.data == {
|
assert result.data == {"createUserWithPlanet": {"name": "Peter", "planet": "earth"}}
|
||||||
'createUserWithPlanet': {
|
|
||||||
'name': 'Peter',
|
|
||||||
'planet': 'earth',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user