Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.graphql.tests.functional.test_pagination::test_too_big_first_arg
Failed

TEST RESULT

Run At
Aug 30 2022, 3:25 PM
Details
client = <FlaskClient <Flask 'swh.graphql.tests.conftest'>> def test_too_big_first_arg(client): > data, errors = get_origin_nodes(client, 1001) # max page size is 1000 .tox/py3/lib/python3.7/site-packages/swh/graphql/tests/functional/test_pagination.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/graphql/tests/functional/test_pagination.py:28: in get_origin_nodes return get_query_response(client, query_str) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ client = <FlaskClient <Flask 'swh.graphql.tests.conftest'>> query_str = '\n {\n origins(first: 1001, ) {\n nodes {\n id\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n ' def get_query_response(client, query_str: str) -> Tuple[Dict, Dict]: response = get_response(client, query_str) > assert response.status_code == 200, response.data E AssertionError: b'{"errors":[{"extensions":{"cost":{"maximumAvailable":100,"requestedQueryCost":1001}},"message":"The query exceeds the maximum cost of 100. Actual cost is 1001"}]} E ' E assert 400 == 200 E + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code .tox/py3/lib/python3.7/site-packages/swh/graphql/tests/functional/utils.py:16: AssertionError