Skip to content

Commit f37d177

Browse files
committed
Python: Improve requests tests
1 parent c21e05a commit f37d177

File tree

1 file changed

+4
-0
lines changed
  • python/ql/test/library-tests/frameworks/requests

1 file changed

+4
-0
lines changed

python/ql/test/library-tests/frameworks/requests/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
# ==============================================================================
3434

3535
resp = requests.get("url", verify=False) # $ clientRequestUrlPart="url" clientRequestCertValidationDisabled
36+
resp = requests.get("url", verify=0) # $ clientRequestUrlPart="url" clientRequestCertValidationDisabled
37+
38+
# in reuqests, using `verify=None` is just the default value, so does NOT turn off certificate validation
39+
resp = requests.get("url", verify=None) # $ clientRequestUrlPart="url"
3640

3741
def make_get(verify_arg):
3842
resp = requests.get("url", verify=verify_arg) # $ clientRequestUrlPart="url" clientRequestCertValidationDisabled

0 commit comments

Comments
 (0)