Run format

This commit is contained in:
Jonathan Kim 2019-12-26 12:22:42 +00:00
parent 357c340080
commit bddff047c4

View File

@ -7,52 +7,31 @@ 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': { "rebels": {"id": "RmFjdGlvbjox", "name": "Alliance to Restore the Republic"}
'id': 'RmFjdGlvbjox',
'name': 'Alliance to Restore the Republic'
}
} }
} }
snapshots['test_correctly_refetches_rebels 1'] = { snapshots["test_correctly_refetches_rebels 1"] = {
'data': { "data": {"node": {"id": "RmFjdGlvbjox", "name": "Alliance to Restore the Republic"}}
'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': { "data": {"empire": {"id": "RmFjdGlvbjoy", "name": "Galactic Empire"}}
'empire': {
'id': 'RmFjdGlvbjoy',
'name': 'Galactic Empire'
}
}
} }
snapshots['test_correctly_refetches_empire 1'] = { snapshots["test_correctly_refetches_empire 1"] = {
'data': { "data": {"node": {"id": "RmFjdGlvbjoy", "name": "Galactic Empire"}}
'node': {
'id': 'RmFjdGlvbjoy',
'name': 'Galactic Empire'
}
}
} }
snapshots['test_correctly_refetches_xwing 1'] = { snapshots["test_correctly_refetches_xwing 1"] = {
'data': { "data": {"node": {"id": "U2hpcDox", "name": "X-Wing"}}
'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 { type Faction implements Node {
"""The ID of the object""" """The ID of the object"""
id: ID! id: ID!