-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API schema tests using schemathesis (#3444)
* Add schemathesis tests Signed-off-by: Olga Bulat <[email protected]> * Add `not_a_server_error` check Signed-off-by: Olga Bulat <[email protected]> * Fix the related 500 error Signed-off-by: Olga Bulat <[email protected]> * Fix oembed endpoint Signed-off-by: Olga Bulat <[email protected]> * Get schemathesis running in docker with failing tests * Run schemathesis in pytest suite with failing cases * Fix schema for all endpoints except auth * Remove unnecessary method overrides and fix various path issues * Update the lock file Signed-off-by: Olga Bulat <[email protected]> * Lint Signed-off-by: Olga Bulat <[email protected]> * Fix test errors Signed-off-by: Olga Bulat <[email protected]> * Remove unnecessary CI test Signed-off-by: Olga Bulat <[email protected]> * Catch both DRF and Django Validation errors Signed-off-by: Olga Bulat <[email protected]> * Handle invalid credentials for /token view Signed-off-by: Olga Bulat <[email protected]> * Add Invalid credentials error Signed-off-by: Olga Bulat <[email protected]> * Add `alt_files` serializer Signed-off-by: Olga Bulat <[email protected]> * Create a new section for gitignore Signed-off-by: Olga Bulat <[email protected]> * Pin dependencies up to minor version Signed-off-by: Olga Bulat <[email protected]> --------- Signed-off-by: Olga Bulat <[email protected]> Co-authored-by: sarayourfriend <[email protected]>
- Loading branch information
1 parent
8438dd8
commit 2747615
Showing
18 changed files
with
1,228 additions
and
658 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ docs/_build/ | |
# OpenAPI | ||
openapi.yaml | ||
openapi.json | ||
|
||
# Schemathesis | ||
.hypothesis |
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
Large diffs are not rendered by default.
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
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
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
Oops, something went wrong.