Skip to content
Snippets Groups Projects
Verified Commit 64997e38 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix GraphQL tests to work without batching

parent 17ce799b
No related branches found
No related tags found
1 merge request!1681Resolve "Job Failed #315563"
Pipeline #194893 failed
...@@ -30,15 +30,15 @@ def graphql_query( ...@@ -30,15 +30,15 @@ def graphql_query(
header_params = {"headers": headers} header_params = {"headers": headers}
resp = client.post( resp = client.post(
graphql_url, graphql_url,
json.dumps([body]), json.dumps(body),
content_type="application/json", content_type="application/json",
**header_params, **header_params,
) )
else: else:
resp = client.post( resp = client.post(
graphql_url, json.dumps([body]), content_type="application/json" graphql_url, json.dumps(body), content_type="application/json"
) )
content = json.loads(resp.content)[0] content = json.loads(resp.content)
return resp, content return resp, content
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment