Skip to content

Commit 64c31ce

Browse files
Regenerate tests
1 parent 9c00256 commit 64c31ce

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

end_to_end_tests/golden-record-custom/custom_e2e/models/a_model_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record-custom/custom_e2e/models/a_model_not_required_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record-custom/custom_e2e/models/a_model_not_required_nullable_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record-custom/custom_e2e/models/a_model_nullable_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record-custom/custom_e2e/models/model_with_union_property.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4343
if isinstance(data, Unset):
4444
return data
4545
try:
46-
if not isinstance(data, int):
46+
if not (isinstance(data, int) or isinstance(data, str)):
4747
raise TypeError()
4848
a_property = UNSET
4949
_a_property = data
@@ -53,7 +53,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5353
return a_property
5454
except: # noqa: E722
5555
pass
56-
if not isinstance(data, int):
56+
if not (isinstance(data, int) or isinstance(data, str)):
5757
raise TypeError()
5858
a_property = UNSET
5959
_a_property = data

end_to_end_tests/golden-record/my_test_api_client/models/a_model_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record/my_test_api_client/models/a_model_not_required_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record/my_test_api_client/models/a_model_not_required_nullable_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record/my_test_api_client/models/a_model_nullable_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4545
if isinstance(data, Unset):
4646
return data
4747
try:
48-
if not isinstance(data, int):
48+
if not (isinstance(data, int) or isinstance(data, str)):
4949
raise TypeError()
5050
a_property = UNSET
5151
_a_property = data
@@ -55,7 +55,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5555
return a_property
5656
except: # noqa: E722
5757
pass
58-
if not isinstance(data, int):
58+
if not (isinstance(data, int) or isinstance(data, str)):
5959
raise TypeError()
6060
a_property = UNSET
6161
_a_property = data

end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
4343
if isinstance(data, Unset):
4444
return data
4545
try:
46-
if not isinstance(data, int):
46+
if not (isinstance(data, int) or isinstance(data, str)):
4747
raise TypeError()
4848
a_property = UNSET
4949
_a_property = data
@@ -53,7 +53,7 @@ def _parse_a_property(data: Union[Unset, int]) -> Union[Unset, AnEnum, AnIntEnum
5353
return a_property
5454
except: # noqa: E722
5555
pass
56-
if not isinstance(data, int):
56+
if not (isinstance(data, int) or isinstance(data, str)):
5757
raise TypeError()
5858
a_property = UNSET
5959
_a_property = data

0 commit comments

Comments
 (0)