-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix: async bucket_factory.get() #171
Conversation
Change-Id: Ib471e7661c7d9808ddad3767806b08f1ef1b9967
the code basically looks good, but I think you will have to add some test for this async-get-bucket method. You can modify the bucket-factory test to cover the case where get-bucket is async. |
And use pre-commit to fix the lint complaints as well |
Somehow the test suite did not pass :(. Can you check that? @haoyuhu |
Change-Id: Ie61fe2e68cba6b44b46127772a18a43924746b3f
I have tried to fix the aforementioned issue, but the unit tests are not running properly on my local machine. Additionally, regarding the error message "Avoid too many return statements within this function", I don't have a better idea at the moment. Do you have any suggestions or recommendations? |
You can ignore the "too many return" thing. But if the tests are not running well then its probably due to pytest-asyncio & nox. Im afraid you have to play with it a bit to get it right. |
Change-Id: Id0f0405febbc0d39acacadf35520b9e420b33f7e
I have fixed the issues with the unit tests, and I have also gone through the code and gained a deeper understanding. Please help me confirm if there are any areas that have been overlooked. Thank you! |
Everything looks good. |
Can you help me create a new version? I'm looking forward to being able to download the latest version from PyPI. My code depends on this fix. Thank you. |
It's done! |
Change-Id: Ib471e7661c7d9808ddad3767806b08f1ef1b9967
I have discovered an error that occurs at runtime when I use
aioredis
's asyncio redis_client to build theRedisBucket
. The error message is "Invalid bucket: item: {name}".I have attempted to fix this bug and would appreciate your assistance with the code review, thank you very much!