MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / test_verify_true_safe

Method test_verify_true_safe

tests/unit/test_missing_rules.py:176–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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')"

Callers

nothing calls this directly

Calls 1

not_firesFunction · 0.70

Tested by

no test coverage detected