Skip to content

Commit 217409b

Browse files
committed
fix: test failures after changing to context manager for http calls
1 parent 2e0064d commit 217409b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/graphql/test/graphql/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_execute_no_token(urlopen, client: GraphQLClient):
2424
response = json.dumps({"data": {"test": "foo"}}).encode("utf-8")
2525
request_body = json.dumps({"query": query, "variables": vars}).encode("utf-8")
2626

27-
urlopen.return_value.read.return_value = response
27+
urlopen.return_value.__enter__.return_value.read.return_value = response
2828

2929
client.execute(query, vars)
3030
(request,), _ = urlopen.call_args

0 commit comments

Comments
 (0)