-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `SOURCE` size and `json_load` method to `StoredFile` Introduced a new `SOURCE` size to `StoredFileSize` enum and updated the `_download` method to accommodate this new size. Additionally, added a `json_load` method to `StoredFile` to download and deserialize JSON data, ensuring compatibility with attachment properties. * Add test cassette for JSON file upload and download This commit introduces a new test cassette for the `TestStoredFilesDownload.test_upload_and_download_of_json_file` test case. The cassette records HTTP interactions for the JSON file upload and download process, aiding in consistent and reliable test results. * Update CHANGELOG with issue reference for json_load method The `json_load()` method entry was updated to include issue reference #1485 in the UNRELEASED section. This helps in tracking the change and linking it to the discussed issue for better documentation. * Refactor docstring in _download method Updated the docstring in the `_download` method for clarity and conciseness. This change ensures that the description aligns better with standard documentation practices and improves readability. --------- Co-authored-by: Jochem Berends <jochem.berends@ke-works.com>
- Loading branch information
Showing
5 changed files
with
44 additions
and
3 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
1 change: 1 addition & 0 deletions
1
tests/cassettes/TestStoredFilesDownload.test_upload_and_download_of_json_file.json
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