-
Notifications
You must be signed in to change notification settings - Fork 2
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 faulty comparisons #579
Conversation
Since the unit test fails: |
Regarding the other error: passing |
Yes, this agreed, this is just a straight-up bug. I guess the final yield in
Good question. Honestly, I don't know what I was thinking here. I'm working through a patching test now though. Your PR looks good to me, but despite that something is still off -- the failing test is correct and I really do expect to find two instances in the return to I'm stacking on a patch for the tests now. I fixed the wrong datatype and will try to keep your changes while still getting both the expected backends for the failing storage test. |
Ah, I see it now. You terminate with an |
At any rate, that explains why I was doing a direct value check. And yes, |
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.
Yes, I like this direction. What's here actually changes the behaviour in storage.available_backends
a little bit though, and the test failure was legitimate vis a vis the intention of the function. I stacked on a patch in #580, so let me know what you think there, after which I'm happy here.
* Just use the default value for autoload We are anyhow using the default value -- i.e. "pickle" -- to handle the auto saving. As @XzzX points out, a boolean value here is just straight-up the wrong data type to provide! Signed-off-by: liamhuber <[email protected]> * Tolerate and test for string backends * black Signed-off-by: liamhuber <[email protected]> * Don't compare instances and classes Signed-off-by: liamhuber <[email protected]> --------- Signed-off-by: liamhuber <[email protected]>
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
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.
All checks are passing
fix
and enable corresponding
mypy
check.