예제 #1
0
def test_require_pagination(api_client):
    query = """
    query {
        skills {
            edges {
                node {
                    name
                }
            }
        }
    }
    """
    response = api_client.post_graphql(query)
    content = _get_graphql_content_from_response(response)
    assert 'errors' in content
    assert content['errors'][0]['message'] == (
        'You must provide a `first` or `last` value to properly paginate the '
        '`skills` connection.')
예제 #2
0
def test_require_pagination(api_client):
    query = """
    query {
        products {
            edges {
                node {
                    name
                }
            }
        }
    }
    """
    response = api_client.post_graphql(query)
    content = _get_graphql_content_from_response(response)
    assert "errors" in content
    assert content["errors"][0]["message"] == (
        "You must provide a `first` or `last` value to properly paginate the "
        "`products` connection.")
예제 #3
0
def test_require_pagination(api_client):
    query = """
    query {
        products {
            edges {
                node {
                    name
                }
            }
        }
    }
    """
    response = api_client.post_graphql(query)
    content = _get_graphql_content_from_response(response)
    assert 'errors' in content
    assert content['errors'][0]['message'] == (
        'You must provide a `first` or `last` value to properly paginate the '
        '`products` connection.')