Description
The tests are now failing with graphql-core 3.3.0a7 for multiple reasons:
======================================================================================= short test summary info =======================================================================================
FAILED tests/test_transport.py::test_hero_name_query - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/test_transport.py::test_query_with_variable - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/test_transport.py::test_named_query - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/test_transport.py::test_header_query - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/test_transport_batch.py::test_hero_name_query - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/test_transport_batch.py::test_query_with_variable - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/test_transport_batch.py::test_named_query - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/test_transport_batch.py::test_header_query - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob...
FAILED tests/starwars/test_dsl.py::test_get_introspection_query_ast[True] - AssertionError: assert 'query IntrospectionQuery {\n __schema {\n description\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n...
FAILED tests/starwars/test_dsl.py::test_get_introspection_query_ast[False] - AssertionError: assert 'query IntrospectionQuery {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n }\n types ...
FAILED tests/starwars/test_dsl.py::test_node_tree_with_loc - assert "DocumentNode\n loc:\n Location\n <Location 0:43>\n definitions:\n OperationDefinitionNode\n loc:\n Location\n <Location 0:43>\n directives:\n ...
Problem 1 - introspection query changed
From graphql-core v3.3.0a7, the default introspection query has now two more recursion levels.
A fix for the test is available on PR #521
Problem 2 - order of some attributes changed in the DocumentNode object
This is a low-level implementation detail which should not have any impact.
The node_tree
method of gql used for debugging should be fixed to allow for those changes.
In the PR #520, the node_tree
method has been modified to sort the elements and thus ignore those changes.
Problem 3 - requests.exceptions.ConnectionError errors
For some reason, there are now ConnectionError
for some tests. This should be investigated further.
EDIT: The problem is that those tests are using vcr cassettes, which are expecting the old version of the introspection query