mirror of
https://github.com/graphql-python/graphene.git
synced 2025-09-21 11:22:33 +03:00
Update snapshots
This commit is contained in:
parent
f9f2121937
commit
ec07b41ec0
|
@ -4,33 +4,55 @@ from __future__ import unicode_literals
|
|||
|
||||
from snapshottest import Snapshot
|
||||
|
||||
|
||||
snapshots = Snapshot()
|
||||
|
||||
snapshots["test_correctly_fetches_id_name_rebels 1"] = {
|
||||
"data": {
|
||||
"rebels": {"id": "RmFjdGlvbjox", "name": "Alliance to Restore the Republic"}
|
||||
snapshots['test_correctly_fetches_id_name_rebels 1'] = {
|
||||
'data': {
|
||||
'rebels': {
|
||||
'id': 'RmFjdGlvbjox',
|
||||
'name': 'Alliance to Restore the Republic'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
snapshots["test_correctly_refetches_rebels 1"] = {
|
||||
"data": {"node": {"id": "RmFjdGlvbjox", "name": "Alliance to Restore the Republic"}}
|
||||
snapshots['test_correctly_refetches_rebels 1'] = {
|
||||
'data': {
|
||||
'node': {
|
||||
'id': 'RmFjdGlvbjox',
|
||||
'name': 'Alliance to Restore the Republic'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
snapshots["test_correctly_fetches_id_name_empire 1"] = {
|
||||
"data": {"empire": {"id": "RmFjdGlvbjoy", "name": "Galactic Empire"}}
|
||||
snapshots['test_correctly_fetches_id_name_empire 1'] = {
|
||||
'data': {
|
||||
'empire': {
|
||||
'id': 'RmFjdGlvbjoy',
|
||||
'name': 'Galactic Empire'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
snapshots["test_correctly_refetches_empire 1"] = {
|
||||
"data": {"node": {"id": "RmFjdGlvbjoy", "name": "Galactic Empire"}}
|
||||
snapshots['test_correctly_refetches_empire 1'] = {
|
||||
'data': {
|
||||
'node': {
|
||||
'id': 'RmFjdGlvbjoy',
|
||||
'name': 'Galactic Empire'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
snapshots["test_correctly_refetches_xwing 1"] = {
|
||||
"data": {"node": {"id": "U2hpcDox", "name": "X-Wing"}}
|
||||
snapshots['test_correctly_refetches_xwing 1'] = {
|
||||
'data': {
|
||||
'node': {
|
||||
'id': 'U2hpcDox',
|
||||
'name': 'X-Wing'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
snapshots[
|
||||
"test_str_schema 1"
|
||||
] = '''"""A faction in the Star Wars saga"""
|
||||
snapshots['test_str_schema 1'] = '''"""A faction in the Star Wars saga"""
|
||||
type Faction implements Node {
|
||||
"""The ID of the object"""
|
||||
id: ID!
|
||||
|
@ -84,9 +106,10 @@ type PageInfo {
|
|||
type Query {
|
||||
rebels: Faction
|
||||
empire: Faction
|
||||
|
||||
node(
|
||||
"""The ID of the object"""
|
||||
node(id: ID!): Node
|
||||
id: ID!
|
||||
): Node
|
||||
}
|
||||
|
||||
"""A ship in the Star Wars saga"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user