-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(binding/python): new behavior testing for python #3245
Merged
Xuanwo
merged 12 commits into
apache:main
from
laipz8200:test/new_behavior_testing_for_python
Oct 9, 2023
Merged
feat(binding/python): new behavior testing for python #3245
Xuanwo
merged 12 commits into
apache:main
from
laipz8200:test/new_behavior_testing_for_python
Oct 9, 2023
Conversation
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. Add pytest 1. Add operator fixture 1. Add `test_sync_write` 1. Update `service_test_s3.yaml`
1. Rename `test_rw.py` to `test_write.py`
1. Add license headers to `test_write.py`
suyanhanx
changed the title
Test/new behavior testing for python
test: new behavior testing for python
Oct 9, 2023
Xuanwo
reviewed
Oct 9, 2023
it seems that this Python binding dose not currently support redis feature.
1. Find service name by match `OPENDAL_XXX_TEST`
Xuanwo
reviewed
Oct 9, 2023
Xuanwo
reviewed
Oct 9, 2023
1. Switch test to xunit-style. 1. Remove try...except block. 1. Add random part in every file name or dir name. 1. Use `pytest -k TestXXX` select service. 1. Use random size between 1..1024 when generate random file.
Xuanwo
approved these changes
Oct 9, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Xuanwo
changed the title
test: new behavior testing for python
feat(binding/python): new behavior testing for python
Oct 9, 2023
Zheaoli
pushed a commit
to Zheaoli/opendal
that referenced
this pull request
Oct 12, 2023
* test(bindings/python): New behavior testing. 1. Add pytest 1. Add operator fixture 1. Add `test_sync_write` 1. Update `service_test_s3.yaml` * refactor(bindings/python): Rename file 1. Rename `test_rw.py` to `test_write.py` * chore(bindings/python): Add license headers 1. Add license headers to `test_write.py` * test(bindings/python): Add more cases. * test(bindings/python): Add redis workflow * test(bindings/python): Remove redis test. it seems that this Python binding dose not currently support redis feature. * test(bindings/python): Load `.env` file before run tests. * test(bindings/python): Remove `random_file` fixture * refactor(bindings/python): Use `os.urandom` to create bytes * test(bindings/python): Update `operator` fixture 1. Find service name by match `OPENDAL_XXX_TEST` * test(bindings/python): Switch test to xunit-style 1. Switch test to xunit-style. 1. Remove try...except block. 1. Add random part in every file name or dir name. 1. Use `pytest -k TestXXX` select service. 1. Use random size between 1..1024 when generate random file. --------- Co-authored-by: Xuanwo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
related to #3066
I made some setup work for Python's test, if it works, I'll add more cases and services for it.