Skip to content

Commit bd5dc71

Browse files
author
Andrei Neagu
committed
fixed test, json format no longer has spaces
1 parent 2313564 commit bd5dc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/service-library/tests/fastapi/test_httpx_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def test_to_curl_command(client: AsyncClient):
6262

6363
assert (
6464
cmd_short
65-
== f'curl -X POST -H "host: test_base_http_api" -H "accept: */*" -H "accept-encoding: gzip, deflate" -H "connection: keep-alive" -H "user-agent: python-httpx/{httpx.__version__}" -H "x-secret: {_PLACEHOLDER}" -H "content-length: 9" -H "content-type: application/json" -d \'{{"y": 12}}\' https://test_base_http_api/foo?x=3'
65+
== f'curl -X POST -H "host: test_base_http_api" -H "accept: */*" -H "accept-encoding: gzip, deflate" -H "connection: keep-alive" -H "user-agent: python-httpx/{httpx.__version__}" -H "x-secret: {_PLACEHOLDER}" -H "content-length: 8" -H "content-type: application/json" -d \'{{"y":12}}\' https://test_base_http_api/foo?x=3'
6666
)
6767

6868
cmd_long = to_curl_command(response.request, use_short_options=False)

0 commit comments

Comments
 (0)