-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapshottest -> syrupy - Python 3.12 support
Migrate from snapshottest to syrupy. Snapshottest was the issue why the tests were failing on python 3.12
- Loading branch information
1 parent
597fcfc
commit 5689838
Showing
11 changed files
with
94 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
openapi_to_fastapi/tests/__snapshots__/test_router/test_custom_route_definitions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"detail": [ | ||
{ | ||
"input": null, | ||
"loc": [ | ||
"query", | ||
"vendor" | ||
], | ||
"msg": "Field required", | ||
"type": "missing" | ||
}, | ||
{ | ||
"input": null, | ||
"loc": [ | ||
"header", | ||
"auth-header" | ||
], | ||
"msg": "Field required", | ||
"type": "missing" | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
openapi_to_fastapi/tests/__snapshots__/test_router/test_weather_route_payload_errors.1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"detail": [ | ||
{ | ||
"input": "1,1.2", | ||
"loc": [ | ||
"body", | ||
"lat" | ||
], | ||
"msg": "Input should be a valid number, unable to parse string as a number", | ||
"type": "float_parsing" | ||
}, | ||
{ | ||
"ctx": { | ||
"le": 180.0 | ||
}, | ||
"input": "99999", | ||
"loc": [ | ||
"body", | ||
"lon" | ||
], | ||
"msg": "Input should be less than or equal to 180", | ||
"type": "less_than_equal" | ||
} | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
openapi_to_fastapi/tests/__snapshots__/test_router/test_weather_route_payload_errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"detail": [ | ||
{ | ||
"input": {}, | ||
"loc": [ | ||
"body", | ||
"lat" | ||
], | ||
"msg": "Field required", | ||
"type": "missing" | ||
}, | ||
{ | ||
"input": {}, | ||
"loc": [ | ||
"body", | ||
"lon" | ||
], | ||
"msg": "Field required", | ||
"type": "missing" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters