Update snapshots

This commit is contained in:
Jonathan Kim 2019-12-26 12:13:42 +00:00
parent f9f2121937
commit ec07b41ec0

View File

@ -4,33 +4,55 @@ from __future__ import unicode_literals
from snapshottest import Snapshot from snapshottest import Snapshot
snapshots = Snapshot() snapshots = Snapshot()
snapshots["test_correctly_fetches_id_name_rebels 1"] = { snapshots['test_correctly_fetches_id_name_rebels 1'] = {
"data": { 'data': {
"rebels": {"id": "RmFjdGlvbjox", "name": "Alliance to Restore the Republic"} 'rebels': {
'id': 'RmFjdGlvbjox',
'name': 'Alliance to Restore the Republic'
}
} }
} }
snapshots["test_correctly_refetches_rebels 1"] = { snapshots['test_correctly_refetches_rebels 1'] = {
"data": {"node": {"id": "RmFjdGlvbjox", "name": "Alliance to Restore the Republic"}} 'data': {
'node': {
'id': 'RmFjdGlvbjox',
'name': 'Alliance to Restore the Republic'
}
}
} }
snapshots["test_correctly_fetches_id_name_empire 1"] = { snapshots['test_correctly_fetches_id_name_empire 1'] = {
"data": {"empire": {"id": "RmFjdGlvbjoy", "name": "Galactic Empire"}} 'data': {
'empire': {
'id': 'RmFjdGlvbjoy',
'name': 'Galactic Empire'
}
}
} }
snapshots["test_correctly_refetches_empire 1"] = { snapshots['test_correctly_refetches_empire 1'] = {
"data": {"node": {"id": "RmFjdGlvbjoy", "name": "Galactic Empire"}} 'data': {
'node': {
'id': 'RmFjdGlvbjoy',
'name': 'Galactic Empire'
}
}
} }
snapshots["test_correctly_refetches_xwing 1"] = { snapshots['test_correctly_refetches_xwing 1'] = {
"data": {"node": {"id": "U2hpcDox", "name": "X-Wing"}} 'data': {
'node': {
'id': 'U2hpcDox',
'name': 'X-Wing'
}
}
} }
snapshots[ snapshots['test_str_schema 1'] = '''"""A faction in the Star Wars saga"""
"test_str_schema 1"
] = '''"""A faction in the Star Wars saga"""
type Faction implements Node { type Faction implements Node {
"""The ID of the object""" """The ID of the object"""
id: ID! id: ID!
@ -84,9 +106,10 @@ type PageInfo {
type Query { type Query {
rebels: Faction rebels: Faction
empire: Faction empire: Faction
node(
"""The ID of the object""" """The ID of the object"""
node(id: ID!): Node id: ID!
): Node
} }
"""A ship in the Star Wars saga""" """A ship in the Star Wars saga"""