File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -75,19 +75,23 @@ def validation_errors(client, query):
75
75
76
76
77
77
def test_incompatible_request_gql (client ):
78
- with pytest .raises (TypeError ) as exc_info :
78
+ with pytest .raises (TypeError ):
79
79
gql (123 )
80
80
81
81
"""
82
82
The error generated depends on graphql-core version
83
83
< 3.1.5: "body must be a string"
84
- >= 3.1.5: "object of type 'int' has no len()"
84
+ >= 3.1.5: some variation of "object of type 'int' has no len()"
85
+ depending on the python environment
86
+
87
+ So we are not going to check the exact error message here anymore.
88
+ """
85
89
86
- Just accepting both cases for now
87
90
"""
88
91
assert ("body must be a string" in str(exc_info.value)) or (
89
92
"object of type 'int' has no len()" in str(exc_info.value)
90
93
)
94
+ """
91
95
92
96
93
97
def test_nested_query_with_fragment (client ):
You can’t perform that action at this time.
0 commit comments