This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): expand GraphlQL api and add tests
- Loading branch information
Jaroslav Sevcik
committed
Jul 20, 2021
1 parent
f8d924e
commit aab42a0
Showing
34 changed files
with
2,897 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,228 @@ | ||
# -*- coding: utf-8 -*- | ||
# snapshottest: v1 - https://goo.gl/zC4yUc | ||
from __future__ import unicode_literals | ||
|
||
from snapshottest import Snapshot | ||
|
||
|
||
snapshots = Snapshot() | ||
|
||
snapshots['test_all 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_empty 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_first 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_first_after 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_last 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_last_before 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_group 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_library 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_links 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_service 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_with_source 1'] = { | ||
'data': { | ||
'allEntities': None | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 7, | ||
'line': 3 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of EntityConnection. Received "None"', | ||
'path': [ | ||
'allEntities' | ||
] | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.