Closed haoyuhu closed 4 months ago
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
Somehow the test suite did not pass :(. Can you check that? @haoyuhu
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?
Somehow the test suite did not pass :(. Can you check that? @haoyuhu
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.
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.
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.
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!