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(service): Introduce Arbitrary Links for Service
- Loading branch information
Showing
17 changed files
with
1,023 additions
and
272 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,107 @@ | ||
# -*- coding: utf-8 -*- | ||
# snapshottest: v1 - https://goo.gl/zC4yUc | ||
from __future__ import unicode_literals | ||
|
||
from snapshottest import Snapshot | ||
|
||
|
||
snapshots = Snapshot() | ||
|
||
snapshots['test_empty 1'] = { | ||
'data': { | ||
'allServices': { | ||
'edges': [ | ||
], | ||
'totalCount': 0 | ||
} | ||
} | ||
} | ||
|
||
snapshots['test_all 1'] = { | ||
'data': { | ||
'allServices': { | ||
'edges': [ | ||
{ | ||
'node': { | ||
'allLinks': None | ||
} | ||
} | ||
], | ||
'totalCount': 1 | ||
} | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 13, | ||
'line': 7 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of LinkConnection. Received "None"', | ||
'path': [ | ||
'allServices', | ||
'edges', | ||
0, | ||
'node', | ||
'allLinks' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_first 1'] = { | ||
'data': { | ||
'allServices': { | ||
'edges': [ | ||
{ | ||
'node': { | ||
'allLinks': None | ||
} | ||
} | ||
], | ||
'totalCount': 1 | ||
} | ||
}, | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 13, | ||
'line': 7 | ||
} | ||
], | ||
'message': 'Resolved value from the connection field have to be iterable or instance of LinkConnection. Received "None"', | ||
'path': [ | ||
'allServices', | ||
'edges', | ||
0, | ||
'node', | ||
'allLinks' | ||
] | ||
} | ||
] | ||
} | ||
|
||
snapshots['test_last 1'] = { | ||
'errors': [ | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 19, | ||
'line': 13 | ||
} | ||
], | ||
'message': 'Cannot query field "url" on type "Environment".' | ||
}, | ||
{ | ||
'locations': [ | ||
{ | ||
'column': 19, | ||
'line': 14 | ||
} | ||
], | ||
'message': 'Cannot query field "icon" on type "Environment".' | ||
} | ||
] | ||
} |
Oops, something went wrong.