We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73d0ba5 commit a5ff57cCopy full SHA for a5ff57c
tests/starwars/test_validation.py
@@ -77,7 +77,17 @@ def validation_errors(client, query):
77
def test_incompatible_request_gql(client):
78
with pytest.raises(TypeError) as exc_info:
79
gql(123)
80
- assert "body must be a string" in str(exc_info.value)
+
81
+ """
82
+ The error generated depends on graphql-core version
83
+ < 3.1.5: "body must be a string"
84
+ >= 3.1.5: "object of type 'int' has no len()"
85
86
+ Just accepting both cases for now
87
88
+ assert ("body must be a string" in str(exc_info.value)) or (
89
+ "object of type 'int' has no len()" in str(exc_info.value)
90
+ )
91
92
93
def test_nested_query_with_fragment(client):
0 commit comments