-
-
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 support for rt, rt+, wt, wt+, at, at+ methods (#342)
* Update README.rst * Update README.rst * Update README.rst * Implement seek over HTTPS * Add 'rt' mode in API and test this mode. * Add test api_rt_plus * Add new mode for function 'open'. * Revert "Merge remote-tracking branch 'remotes/upstream/master'" This reverts commit ebeab51, reversing changes made to 0f17449. * Add test for binary mode: - a - a+ - at - at+ * Update smart_open/tests/test_smart_open.py Co-Authored-By: Michael Penkov <[email protected]> * Add tempfile in tests. * Add new mode function 'open' * API test names updated. * Delete "delete mode" in temp file Co-Authored-By: Michael Penkov <[email protected]> * Update smart_open/tests/test_smart_open.py Co-Authored-By: Michael Penkov <[email protected]> * Update smart_open/tests/test_smart_open.py Co-Authored-By: Michael Penkov <[email protected]> * Update test_read_str_from_bytes_api_a_plus - read text * Update tests api: when the text is compared, the text stream opens. * Update tests api: update docstrings. * remove unused variable buffer * refactor unit tests move tests that touch the file system to a separate fixture * rename buffer to buf, avoid keyword as variable name * add explicit rt and wt tests * minor unit test improvements
- Loading branch information
1 parent
6501328
commit ed62400
Showing
2 changed files
with
125 additions
and
29 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