Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 41f6d56

Browse files
committed
chore: fix make file to replace httpx syncclient with client
1 parent 72b09a0 commit 41f6d56

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ remove_pytest_asyncio_from_sync:
3737
sed -i 's/@pytest.mark.asyncio//g' tests/_sync/test_client.py
3838
sed -i 's/_async/_sync/g' tests/_sync/test_client.py
3939
sed -i 's/Async/Sync/g' tests/_sync/test_client.py
40+
sed -i 's/_client\.SyncClient/_client\.Client/g' tests/_sync/test_client.py
4041

4142
sleep:
4243
sleep 2

tests/_sync/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_response_client_invalid_response_but_valid_json(
132132
postgrest_client: SyncPostgrestClient,
133133
):
134134
with patch(
135-
"httpx._client.SyncClient.request",
135+
"httpx._client.Client.request",
136136
return_value=Response(
137137
status_code=502,
138138
text='"gateway error: Error: Network connection lost."', # quotes makes this text a valid non-dict JSON object

0 commit comments

Comments
 (0)