Skip to content

Commit 9cd6692

Browse files
Update tests
1 parent fd829c5 commit 9cd6692

File tree

93 files changed

+209
-157
lines changed

Some content is hidden

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

93 files changed

+209
-157
lines changed

end_to_end_tests/golden-record/my_test_api_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" A client library for accessing My Test API """
1+
r""" A client library for accessing My Test API """
22
from .client import AuthenticatedClient, Client
33

44
__all__ = (

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def sync_detailed(
5656
client: Client,
5757
common: Union[Unset, None, str] = UNSET,
5858
) -> Response[Any]:
59-
"""
59+
r"""
6060
Args:
6161
common (Union[Unset, None, str]):
6262
@@ -86,7 +86,7 @@ async def asyncio_detailed(
8686
client: Client,
8787
common: Union[Unset, None, str] = UNSET,
8888
) -> Response[Any]:
89-
"""
89+
r"""
9090
Args:
9191
common (Union[Unset, None, str]):
9292

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def sync_detailed(
5656
client: Client,
5757
common: Union[Unset, None, str] = UNSET,
5858
) -> Response[Any]:
59-
"""
59+
r"""
6060
Args:
6161
common (Union[Unset, None, str]):
6262
@@ -86,7 +86,7 @@ async def asyncio_detailed(
8686
client: Client,
8787
common: Union[Unset, None, str] = UNSET,
8888
) -> Response[Any]:
89-
"""
89+
r"""
9090
Args:
9191
common (Union[Unset, None, str]):
9292

end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_header_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def sync_detailed(
8080
int_enum_header: Union[Unset, GetLocationHeaderTypesIntEnumHeader] = UNSET,
8181
string_enum_header: Union[Unset, GetLocationHeaderTypesStringEnumHeader] = UNSET,
8282
) -> Response[Any]:
83-
"""
83+
r"""
8484
Args:
8585
boolean_header (Union[Unset, bool]):
8686
string_header (Union[Unset, str]):
@@ -125,7 +125,7 @@ async def asyncio_detailed(
125125
int_enum_header: Union[Unset, GetLocationHeaderTypesIntEnumHeader] = UNSET,
126126
string_enum_header: Union[Unset, GetLocationHeaderTypesStringEnumHeader] = UNSET,
127127
) -> Response[Any]:
128-
"""
128+
r"""
129129
Args:
130130
boolean_header (Union[Unset, bool]):
131131
string_header (Union[Unset, str]):

end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def sync_detailed(
8383
null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
8484
not_null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
8585
) -> Response[Any]:
86-
"""
86+
r"""
8787
Args:
8888
not_null_required (datetime.datetime):
8989
null_required (Union[Unset, None, datetime.datetime]):
@@ -122,7 +122,7 @@ async def asyncio_detailed(
122122
null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
123123
not_null_not_required: Union[Unset, None, datetime.datetime] = UNSET,
124124
) -> Response[Any]:
125-
"""
125+
r"""
126126
Args:
127127
not_null_required (datetime.datetime):
128128
null_required (Union[Unset, None, datetime.datetime]):

end_to_end_tests/golden-record/my_test_api_client/api/parameter_references/get_parameter_references_path_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def sync_detailed(
7070
header_param: str,
7171
cookie_param: str,
7272
) -> Response[Any]:
73-
"""Test different types of parameter references
73+
r"""Test different types of parameter references
7474
7575
Args:
7676
path_param (str):
@@ -113,7 +113,7 @@ async def asyncio_detailed(
113113
header_param: str,
114114
cookie_param: str,
115115
) -> Response[Any]:
116-
"""Test different types of parameter references
116+
r"""Test different types of parameter references
117117
118118
Args:
119119
path_param (str):

end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def sync_detailed(
5858
client: Client,
5959
param_query: Union[Unset, None, str] = UNSET,
6060
) -> Response[Any]:
61-
"""
61+
r"""
6262
Args:
6363
param_path (str):
6464
param_query (Union[Unset, None, str]):
@@ -91,7 +91,7 @@ async def asyncio_detailed(
9191
client: Client,
9292
param_query: Union[Unset, None, str] = UNSET,
9393
) -> Response[Any]:
94-
"""
94+
r"""
9595
Args:
9696
param_path (str):
9797
param_query (Union[Unset, None, str]):

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def sync_detailed(
5858
client: Client,
5959
param_query: str = "overridden_in_GET",
6060
) -> Response[Any]:
61-
"""Test that if you have an overriding property from `PathItem` in `Operation`, it produces valid code
61+
r"""Test that if you have an overriding property from `PathItem` in `Operation`, it produces valid code
6262
6363
Args:
6464
param_path (str):
@@ -93,7 +93,7 @@ async def asyncio_detailed(
9393
client: Client,
9494
param_query: str = "overridden_in_GET",
9595
) -> Response[Any]:
96-
"""Test that if you have an overriding property from `PathItem` in `Operation`, it produces valid code
96+
r"""Test that if you have an overriding property from `PathItem` in `Operation`, it produces valid code
9797
9898
Args:
9999
param_path (str):

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def sync_detailed(
6868
param_header: Union[Unset, str] = UNSET,
6969
param_cookie: Union[Unset, str] = UNSET,
7070
) -> Response[Any]:
71-
"""
71+
r"""
7272
Args:
7373
param_path (str):
7474
param_query (Union[Unset, None, str]):
@@ -107,7 +107,7 @@ async def asyncio_detailed(
107107
param_header: Union[Unset, str] = UNSET,
108108
param_cookie: Union[Unset, str] = UNSET,
109109
) -> Response[Any]:
110-
"""
110+
r"""
111111
Args:
112112
param_path (str):
113113
param_query (Union[Unset, None, str]):

end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def sync_detailed(
5858
*,
5959
client: Client,
6060
) -> Response[Any]:
61-
"""
61+
r"""
6262
Args:
6363
param4 (str):
6464
param2 (int):
@@ -97,7 +97,7 @@ async def asyncio_detailed(
9797
*,
9898
client: Client,
9999
) -> Response[Any]:
100-
"""
100+
r"""
101101
Args:
102102
param4 (str):
103103
param2 (int):

end_to_end_tests/golden-record/my_test_api_client/api/responses/post_responses_unions_simple_before_complex.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def sync_detailed(
5757
*,
5858
client: Client,
5959
) -> Response[PostResponsesUnionsSimpleBeforeComplexResponse200]:
60-
"""Regression test for #603
60+
r"""Regression test for #603
6161
6262
Raises:
6363
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -83,7 +83,7 @@ def sync(
8383
*,
8484
client: Client,
8585
) -> Optional[PostResponsesUnionsSimpleBeforeComplexResponse200]:
86-
"""Regression test for #603
86+
r"""Regression test for #603
8787
8888
Raises:
8989
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -102,7 +102,7 @@ async def asyncio_detailed(
102102
*,
103103
client: Client,
104104
) -> Response[PostResponsesUnionsSimpleBeforeComplexResponse200]:
105-
"""Regression test for #603
105+
r"""Regression test for #603
106106
107107
Raises:
108108
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -126,7 +126,7 @@ async def asyncio(
126126
*,
127127
client: Client,
128128
) -> Optional[PostResponsesUnionsSimpleBeforeComplexResponse200]:
129-
"""Regression test for #603
129+
r"""Regression test for #603
130130
131131
Raises:
132132
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/tag1/get_tag_with_number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def sync_detailed(
4848
*,
4949
client: Client,
5050
) -> Response[Any]:
51-
"""
51+
r"""
5252
Raises:
5353
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
5454
httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -73,7 +73,7 @@ async def asyncio_detailed(
7373
*,
7474
client: Client,
7575
) -> Response[Any]:
76-
"""
76+
r"""
7777
Raises:
7878
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
7979
httpx.TimeoutException: If the request takes longer than Client.timeout.

end_to_end_tests/golden-record/my_test_api_client/api/tests/callback_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def sync_detailed(
6060
client: Client,
6161
json_body: AModel,
6262
) -> Response[Union[Any, HTTPValidationError]]:
63-
"""Path with callback
63+
r"""Path with callback
6464
6565
Try sending a request related to a callback
6666
@@ -93,7 +93,7 @@ def sync(
9393
client: Client,
9494
json_body: AModel,
9595
) -> Optional[Union[Any, HTTPValidationError]]:
96-
"""Path with callback
96+
r"""Path with callback
9797
9898
Try sending a request related to a callback
9999
@@ -119,7 +119,7 @@ async def asyncio_detailed(
119119
client: Client,
120120
json_body: AModel,
121121
) -> Response[Union[Any, HTTPValidationError]]:
122-
"""Path with callback
122+
r"""Path with callback
123123
124124
Try sending a request related to a callback
125125
@@ -150,7 +150,7 @@ async def asyncio(
150150
client: Client,
151151
json_body: AModel,
152152
) -> Optional[Union[Any, HTTPValidationError]]:
153-
"""Path with callback
153+
r"""Path with callback
154154
155155
Try sending a request related to a callback
156156

end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def sync_detailed(
137137
model_prop: "ModelWithUnionProperty",
138138
required_model_prop: "ModelWithUnionProperty",
139139
) -> Response[Union[Any, HTTPValidationError]]:
140-
"""Defaults
140+
r"""Defaults
141141
142142
Args:
143143
string_prop (str): Default: 'the default string'.
@@ -198,7 +198,7 @@ def sync(
198198
model_prop: "ModelWithUnionProperty",
199199
required_model_prop: "ModelWithUnionProperty",
200200
) -> Optional[Union[Any, HTTPValidationError]]:
201-
"""Defaults
201+
r"""Defaults
202202
203203
Args:
204204
string_prop (str): Default: 'the default string'.
@@ -252,7 +252,7 @@ async def asyncio_detailed(
252252
model_prop: "ModelWithUnionProperty",
253253
required_model_prop: "ModelWithUnionProperty",
254254
) -> Response[Union[Any, HTTPValidationError]]:
255-
"""Defaults
255+
r"""Defaults
256256
257257
Args:
258258
string_prop (str): Default: 'the default string'.
@@ -311,7 +311,7 @@ async def asyncio(
311311
model_prop: "ModelWithUnionProperty",
312312
required_model_prop: "ModelWithUnionProperty",
313313
) -> Optional[Union[Any, HTTPValidationError]]:
314-
"""Defaults
314+
r"""Defaults
315315
316316
Args:
317317
string_prop (str): Default: 'the default string'.

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def sync_detailed(
5050
*,
5151
client: Client,
5252
) -> Response[List[bool]]:
53-
"""Get Basic List Of Booleans
53+
r"""Get Basic List Of Booleans
5454
5555
Get a list of booleans
5656
@@ -78,7 +78,7 @@ def sync(
7878
*,
7979
client: Client,
8080
) -> Optional[List[bool]]:
81-
"""Get Basic List Of Booleans
81+
r"""Get Basic List Of Booleans
8282
8383
Get a list of booleans
8484
@@ -99,7 +99,7 @@ async def asyncio_detailed(
9999
*,
100100
client: Client,
101101
) -> Response[List[bool]]:
102-
"""Get Basic List Of Booleans
102+
r"""Get Basic List Of Booleans
103103
104104
Get a list of booleans
105105
@@ -125,7 +125,7 @@ async def asyncio(
125125
*,
126126
client: Client,
127127
) -> Optional[List[bool]]:
128-
"""Get Basic List Of Booleans
128+
r"""Get Basic List Of Booleans
129129
130130
Get a list of booleans
131131

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def sync_detailed(
5050
*,
5151
client: Client,
5252
) -> Response[List[float]]:
53-
"""Get Basic List Of Floats
53+
r"""Get Basic List Of Floats
5454
5555
Get a list of floats
5656
@@ -78,7 +78,7 @@ def sync(
7878
*,
7979
client: Client,
8080
) -> Optional[List[float]]:
81-
"""Get Basic List Of Floats
81+
r"""Get Basic List Of Floats
8282
8383
Get a list of floats
8484
@@ -99,7 +99,7 @@ async def asyncio_detailed(
9999
*,
100100
client: Client,
101101
) -> Response[List[float]]:
102-
"""Get Basic List Of Floats
102+
r"""Get Basic List Of Floats
103103
104104
Get a list of floats
105105
@@ -125,7 +125,7 @@ async def asyncio(
125125
*,
126126
client: Client,
127127
) -> Optional[List[float]]:
128-
"""Get Basic List Of Floats
128+
r"""Get Basic List Of Floats
129129
130130
Get a list of floats
131131

0 commit comments

Comments
 (0)