Skip to content

Commit

Permalink
test: Make test_relay_query.test_should_get_node_by_id more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
abawchen committed Mar 7, 2018
1 parent 41dc694 commit 26c92a5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions graphene_mongo/tests/test_relay_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,16 @@ class Query(graphene.ObjectType):


def test_should_get_node_by_id():
# Notes: https://goo.gl/hMNRgs
class Query(graphene.ObjectType):
node = Node.Field()
reporter = Node.Field(ReporterNode)
reporters = MongoengineConnectionField(ReporterNode)

query = '''
query ReportersQuery {
reporter: node(id: "UmVwb3J0ZXJOb2RlOjE=") {
reporter (id: "UmVwb3J0ZXJOb2RlOjE=") {
id,
... on ReporterNode {
firstName
}
firstName
}
}
'''
Expand Down

0 comments on commit 26c92a5

Please sign in to comment.