-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new compression parameter (#609)
* Implement a compression argument to complement ignore_ext * Add a deprecation warning for ignore_ext argument * Fix flake8 linting errors * It's better to mention the problem explicitly here Co-authored-by: Michael Penkov <m@penkov.dev> * Improve comprehensibility of documentation Co-authored-by: Michael Penkov <m@penkov.dev> * Add docstrings to public constant NO_COMPRESSION Co-authored-by: Michael Penkov <m@penkov.dev> * Add docstrings to public constant INFER_FROM_EXTENSION Co-authored-by: Michael Penkov <m@penkov.dev> * Add docstrings to public function get_supported_compression_types * Avoid race condition with bucket creation. Co-authored-by: Michael Penkov <m@penkov.dev> * Fix flake8 linter error introduced * Make tests work in terms of UTF-8 encoded data * Refactor to simplify round-trip compression verification * Fix flake8 linter error introduced (again) * Split compression by extension test by implicit / explicit API * Use pytest-like assertions * Consolidate and unnest parameter validation * Use lowercase "see" keyword Co-authored-by: Michael Penkov <m@penkov.dev> * Don't parameterize tests with essentially constant values * (Safely) create bucket in test setUp * Remove assertions for behavior not related explicitly to compression. Co-authored-by: Michael Penkov <m@penkov.dev>
- Loading branch information
1 parent
9089289
commit 7716c7d
Showing
3 changed files
with
185 additions
and
8 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