-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation method to PatchJSONParameters to perform common checks. Rewrite a little bit resources according to changes in PatchJSONParameters. Add a few tests to check the changes I've made. Changed in some tests tuples to lists to make reading easier. Also moved _process_patch_operation() to PatchJSONParameters and remove it from resources. Add another common logic to perform patch and @classmethod perform_patch(). Refactored resources to use new method. Add dummy methods for different operations in PatchJSONParatemeters
- Loading branch information
Showing
6 changed files
with
276 additions
and
109 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
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.