(self)
| 174 | assert fires(code, "TLS001"), "TLS001 must fire: disable_warnings InsecureRequestWarning" |
| 175 | |
| 176 | def test_verify_true_safe(self): |
| 177 | code = "resp = requests.get(url, verify=True)" |
| 178 | assert not_fires(code, "TLS001"), "TLS001 must NOT fire for verify=True" |
| 179 | |
| 180 | def test_verify_capath_safe(self): |
| 181 | code = "resp = requests.get(url, verify='/etc/ssl/certs/ca-bundle.crt')" |
nothing calls this directly
no test coverage detected