Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
feat(api): expand GraphlQL api and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaroslav Sevcik committed Jul 20, 2021
1 parent f8d924e commit aab42a0
Show file tree
Hide file tree
Showing 34 changed files with 2,897 additions and 904 deletions.
228 changes: 228 additions & 0 deletions test/api/query/snapshots/snap_test_entities.py
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'
]
}
]
}
76 changes: 0 additions & 76 deletions test/api/query/snapshots/snap_test_entity_links.py

This file was deleted.

Loading

0 comments on commit aab42a0

Please sign in to comment.