Skip to content

Commit b49d3a3

Browse files
committed
test: regenerate test clients
1 parent 639679f commit b49d3a3

File tree

60 files changed

+310
-360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+310
-360
lines changed

end_to_end_tests/golden-record/my_test_api_client/api/bodies/json_like.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from ...models.json_like_body import JsonLikeBody
99
from ...types import UNSET, Response, Unset
1010

11-
HTTPStatus = http.HTTPStatus
12-
1311

1412
def _get_kwargs(
1513
*,
@@ -41,9 +39,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
4139
return None
4240

4341

44-
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any, HTTPStatus]:
42+
def _build_response(
43+
*, client: AuthenticatedClient | Client, response: httpx.Response
44+
) -> Response[Any, http.HTTPStatus]:
4545
return Response(
46-
status_code=HTTPStatus(response.status_code),
46+
status_code=http.HTTPStatus(response.status_code),
4747
content=response.content,
4848
headers=response.headers,
4949
parsed=_parse_response(client=client, response=response),
@@ -54,7 +54,7 @@ def sync_detailed(
5454
*,
5555
client: AuthenticatedClient | Client,
5656
body: JsonLikeBody | Unset = UNSET,
57-
) -> Response[Any, HTTPStatus]:
57+
) -> Response[Any, http.HTTPStatus]:
5858
"""A content type that works like json but isn't application/json
5959
6060
Args:
@@ -83,7 +83,7 @@ async def asyncio_detailed(
8383
*,
8484
client: AuthenticatedClient | Client,
8585
body: JsonLikeBody | Unset = UNSET,
86-
) -> Response[Any, HTTPStatus]:
86+
) -> Response[Any, http.HTTPStatus]:
8787
"""A content type that works like json but isn't application/json
8888
8989
Args:

end_to_end_tests/golden-record/my_test_api_client/api/bodies/optional_body.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from ...models.optional_body_body import OptionalBodyBody
99
from ...types import UNSET, Response, Unset
1010

11-
HTTPStatus = http.HTTPStatus
12-
1311

1412
def _get_kwargs(
1513
*,
@@ -41,9 +39,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
4139
return None
4240

4341

44-
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any, HTTPStatus]:
42+
def _build_response(
43+
*, client: AuthenticatedClient | Client, response: httpx.Response
44+
) -> Response[Any, http.HTTPStatus]:
4545
return Response(
46-
status_code=HTTPStatus(response.status_code),
46+
status_code=http.HTTPStatus(response.status_code),
4747
content=response.content,
4848
headers=response.headers,
4949
parsed=_parse_response(client=client, response=response),
@@ -54,7 +54,7 @@ def sync_detailed(
5454
*,
5555
client: AuthenticatedClient | Client,
5656
body: OptionalBodyBody | Unset = UNSET,
57-
) -> Response[Any, HTTPStatus]:
57+
) -> Response[Any, http.HTTPStatus]:
5858
"""Test optional request body
5959
6060
Args:
@@ -83,7 +83,7 @@ async def asyncio_detailed(
8383
*,
8484
client: AuthenticatedClient | Client,
8585
body: OptionalBodyBody | Unset = UNSET,
86-
) -> Response[Any, HTTPStatus]:
86+
) -> Response[Any, http.HTTPStatus]:
8787
"""Test optional request body
8888
8989
Args:

end_to_end_tests/golden-record/my_test_api_client/api/bodies/post_bodies_multiple.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
from ...models.post_bodies_multiple_json_body import PostBodiesMultipleJsonBody
1111
from ...types import UNSET, File, Response, Unset
1212

13-
HTTPStatus = http.HTTPStatus
14-
1513

1614
def _get_kwargs(
1715
*,
@@ -59,9 +57,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
5957
return None
6058

6159

62-
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any, HTTPStatus]:
60+
def _build_response(
61+
*, client: AuthenticatedClient | Client, response: httpx.Response
62+
) -> Response[Any, http.HTTPStatus]:
6363
return Response(
64-
status_code=HTTPStatus(response.status_code),
64+
status_code=http.HTTPStatus(response.status_code),
6565
content=response.content,
6666
headers=response.headers,
6767
parsed=_parse_response(client=client, response=response),
@@ -72,7 +72,7 @@ def sync_detailed(
7272
*,
7373
client: AuthenticatedClient | Client,
7474
body: PostBodiesMultipleJsonBody | File | PostBodiesMultipleDataBody | PostBodiesMultipleFilesBody | Unset = UNSET,
75-
) -> Response[Any, HTTPStatus]:
75+
) -> Response[Any, http.HTTPStatus]:
7676
"""Test multiple bodies
7777
7878
Args:
@@ -104,7 +104,7 @@ async def asyncio_detailed(
104104
*,
105105
client: AuthenticatedClient | Client,
106106
body: PostBodiesMultipleJsonBody | File | PostBodiesMultipleDataBody | PostBodiesMultipleFilesBody | Unset = UNSET,
107-
) -> Response[Any, HTTPStatus]:
107+
) -> Response[Any, http.HTTPStatus]:
108108
"""Test multiple bodies
109109
110110
Args:

end_to_end_tests/golden-record/my_test_api_client/api/bodies/refs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from ...models.a_model import AModel
99
from ...types import UNSET, Response, Unset
1010

11-
HTTPStatus = http.HTTPStatus
12-
1311

1412
def _get_kwargs(
1513
*,
@@ -41,9 +39,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
4139
return None
4240

4341

44-
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any, HTTPStatus]:
42+
def _build_response(
43+
*, client: AuthenticatedClient | Client, response: httpx.Response
44+
) -> Response[Any, http.HTTPStatus]:
4545
return Response(
46-
status_code=HTTPStatus(response.status_code),
46+
status_code=http.HTTPStatus(response.status_code),
4747
content=response.content,
4848
headers=response.headers,
4949
parsed=_parse_response(client=client, response=response),
@@ -54,7 +54,7 @@ def sync_detailed(
5454
*,
5555
client: AuthenticatedClient | Client,
5656
body: AModel | Unset = UNSET,
57-
) -> Response[Any, HTTPStatus]:
57+
) -> Response[Any, http.HTTPStatus]:
5858
"""Test request body defined via ref
5959
6060
Args:
@@ -83,7 +83,7 @@ async def asyncio_detailed(
8383
*,
8484
client: AuthenticatedClient | Client,
8585
body: AModel | Unset = UNSET,
86-
) -> Response[Any, HTTPStatus]:
86+
) -> Response[Any, http.HTTPStatus]:
8787
"""Test request body defined via ref
8888
8989
Args:

end_to_end_tests/golden-record/my_test_api_client/api/config/content_type_override.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from ...client import AuthenticatedClient, Client
88
from ...types import UNSET, Response, Unset
99

10-
HTTPStatus = http.HTTPStatus
11-
1210

1311
def _get_kwargs(
1412
*,
@@ -41,9 +39,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
4139
return None
4240

4341

44-
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[str, HTTPStatus]:
42+
def _build_response(
43+
*, client: AuthenticatedClient | Client, response: httpx.Response
44+
) -> Response[str, http.HTTPStatus]:
4545
return Response(
46-
status_code=HTTPStatus(response.status_code),
46+
status_code=http.HTTPStatus(response.status_code),
4747
content=response.content,
4848
headers=response.headers,
4949
parsed=_parse_response(client=client, response=response),
@@ -54,7 +54,7 @@ def sync_detailed(
5454
*,
5555
client: AuthenticatedClient | Client,
5656
body: str | Unset = UNSET,
57-
) -> Response[str, HTTPStatus]:
57+
) -> Response[str, http.HTTPStatus]:
5858
"""Content Type Override
5959
6060
Args:
@@ -107,7 +107,7 @@ async def asyncio_detailed(
107107
*,
108108
client: AuthenticatedClient | Client,
109109
body: str | Unset = UNSET,
110-
) -> Response[str, HTTPStatus]:
110+
) -> Response[str, http.HTTPStatus]:
111111
"""Content Type Override
112112
113113
Args:

end_to_end_tests/golden-record/my_test_api_client/api/default/get_common_parameters.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from ...client import AuthenticatedClient, Client
88
from ...types import UNSET, Response, Unset
99

10-
HTTPStatus = http.HTTPStatus
11-
1210

1311
def _get_kwargs(
1412
*,
@@ -39,9 +37,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
3937
return None
4038

4139

42-
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any, HTTPStatus]:
40+
def _build_response(
41+
*, client: AuthenticatedClient | Client, response: httpx.Response
42+
) -> Response[Any, http.HTTPStatus]:
4343
return Response(
44-
status_code=HTTPStatus(response.status_code),
44+
status_code=http.HTTPStatus(response.status_code),
4545
content=response.content,
4646
headers=response.headers,
4747
parsed=_parse_response(client=client, response=response),
@@ -52,7 +52,7 @@ def sync_detailed(
5252
*,
5353
client: AuthenticatedClient | Client,
5454
common: str | Unset = UNSET,
55-
) -> Response[Any, HTTPStatus]:
55+
) -> Response[Any, http.HTTPStatus]:
5656
"""
5757
Args:
5858
common (str | Unset):
@@ -80,7 +80,7 @@ async def asyncio_detailed(
8080
*,
8181
client: AuthenticatedClient | Client,
8282
common: str | Unset = UNSET,
83-
) -> Response[Any, HTTPStatus]:
83+
) -> Response[Any, http.HTTPStatus]:
8484
"""
8585
Args:
8686
common (str | Unset):

end_to_end_tests/golden-record/my_test_api_client/api/default/get_models_allof.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from ...models.get_models_allof_response_200 import GetModelsAllofResponse200
99
from ...types import Response
1010

11-
HTTPStatus = http.HTTPStatus
12-
1311

1412
def _get_kwargs() -> dict[str, Any]:
1513
_kwargs: dict[str, Any] = {
@@ -36,9 +34,9 @@ def _parse_response(
3634

3735
def _build_response(
3836
*, client: AuthenticatedClient | Client, response: httpx.Response
39-
) -> Response[GetModelsAllofResponse200, HTTPStatus]:
37+
) -> Response[GetModelsAllofResponse200, http.HTTPStatus]:
4038
return Response(
41-
status_code=HTTPStatus(response.status_code),
39+
status_code=http.HTTPStatus(response.status_code),
4240
content=response.content,
4341
headers=response.headers,
4442
parsed=_parse_response(client=client, response=response),
@@ -48,7 +46,7 @@ def _build_response(
4846
def sync_detailed(
4947
*,
5048
client: AuthenticatedClient | Client,
51-
) -> Response[GetModelsAllofResponse200, HTTPStatus]:
49+
) -> Response[GetModelsAllofResponse200, http.HTTPStatus]:
5250
"""
5351
Raises:
5452
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -88,7 +86,7 @@ def sync(
8886
async def asyncio_detailed(
8987
*,
9088
client: AuthenticatedClient | Client,
91-
) -> Response[GetModelsAllofResponse200, HTTPStatus]:
89+
) -> Response[GetModelsAllofResponse200, http.HTTPStatus]:
9290
"""
9391
Raises:
9492
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

end_to_end_tests/golden-record/my_test_api_client/api/default/get_models_oneof_with_required_const.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
)
1414
from ...types import Response
1515

16-
HTTPStatus = http.HTTPStatus
17-
1816

1917
def _get_kwargs() -> dict[str, Any]:
2018
_kwargs: dict[str, Any] = {
@@ -60,10 +58,10 @@ def _parse_response_200(
6058
def _build_response(
6159
*, client: AuthenticatedClient | Client, response: httpx.Response
6260
) -> Response[
63-
GetModelsOneofWithRequiredConstResponse200Type0 | GetModelsOneofWithRequiredConstResponse200Type1, HTTPStatus
61+
GetModelsOneofWithRequiredConstResponse200Type0 | GetModelsOneofWithRequiredConstResponse200Type1, http.HTTPStatus
6462
]:
6563
return Response(
66-
status_code=HTTPStatus(response.status_code),
64+
status_code=http.HTTPStatus(response.status_code),
6765
content=response.content,
6866
headers=response.headers,
6967
parsed=_parse_response(client=client, response=response),
@@ -74,7 +72,7 @@ def sync_detailed(
7472
*,
7573
client: AuthenticatedClient | Client,
7674
) -> Response[
77-
GetModelsOneofWithRequiredConstResponse200Type0 | GetModelsOneofWithRequiredConstResponse200Type1, HTTPStatus
75+
GetModelsOneofWithRequiredConstResponse200Type0 | GetModelsOneofWithRequiredConstResponse200Type1, http.HTTPStatus
7876
]:
7977
"""
8078
Raises:
@@ -116,7 +114,7 @@ async def asyncio_detailed(
116114
*,
117115
client: AuthenticatedClient | Client,
118116
) -> Response[
119-
GetModelsOneofWithRequiredConstResponse200Type0 | GetModelsOneofWithRequiredConstResponse200Type1, HTTPStatus
117+
GetModelsOneofWithRequiredConstResponse200Type0 | GetModelsOneofWithRequiredConstResponse200Type1, http.HTTPStatus
120118
]:
121119
"""
122120
Raises:

end_to_end_tests/golden-record/my_test_api_client/api/default/post_common_parameters.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from ...client import AuthenticatedClient, Client
88
from ...types import UNSET, Response, Unset
99

10-
HTTPStatus = http.HTTPStatus
11-
1210

1311
def _get_kwargs(
1412
*,
@@ -39,9 +37,11 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res
3937
return None
4038

4139

42-
def _build_response(*, client: AuthenticatedClient | Client, response: httpx.Response) -> Response[Any, HTTPStatus]:
40+
def _build_response(
41+
*, client: AuthenticatedClient | Client, response: httpx.Response
42+
) -> Response[Any, http.HTTPStatus]:
4343
return Response(
44-
status_code=HTTPStatus(response.status_code),
44+
status_code=http.HTTPStatus(response.status_code),
4545
content=response.content,
4646
headers=response.headers,
4747
parsed=_parse_response(client=client, response=response),
@@ -52,7 +52,7 @@ def sync_detailed(
5252
*,
5353
client: AuthenticatedClient | Client,
5454
common: str | Unset = UNSET,
55-
) -> Response[Any, HTTPStatus]:
55+
) -> Response[Any, http.HTTPStatus]:
5656
"""
5757
Args:
5858
common (str | Unset):
@@ -80,7 +80,7 @@ async def asyncio_detailed(
8080
*,
8181
client: AuthenticatedClient | Client,
8282
common: str | Unset = UNSET,
83-
) -> Response[Any, HTTPStatus]:
83+
) -> Response[Any, http.HTTPStatus]:
8484
"""
8585
Args:
8686
common (str | Unset):

0 commit comments

Comments
 (0)