Handle Client(..., security=False)#8980
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 27 files ± 0 27 suites ±0 11h 34m 25s ⏱️ - 2m 20s For more details on these failures and errors, see this check. Results for commit 58b1dfa. ± Comparison against base commit 8d8c878. ♻️ This comment has been updated with latest results. |
TomAugspurger
left a comment
There was a problem hiding this comment.
LGTM. Only minor suggestion might be an assertion about c.security to make sure we get the expected thing. Something like assert c.security.require_encrpytion is False? But I suspect we already test that with security=None so not a big deal.
|
Thanks for the review @TomAugspurger. That's a good suggestion, I've added that assertion. |
|
CI failures are related to #8936. I'm going to merge this based on @TomAugspurger's review. |
Currently the
securitykwarg ofClienttakes a few options:Securityobject with certs loadeddictof certs that get converted into aSecurityobjectTrueto auto generate certsNoneto skip using TLS (the default)Given that it accepts a
booltype this can cause confusion when passingFalse, which currently raises an exception #8973.This PR makes
security=Falsebehave the same assecurity=None.pre-commit run --all-filesCloses #8973