Skip to content

Commit 226990a

Browse files
r2c-argo[bot]ihji
andauthored
update tests for the change in code-8114 (#3588)
Co-authored-by: Heejong Lee <heejong@gmail.com>
1 parent 92616fe commit 226990a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/requests/security/no-auth-over-http.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ok:no-auth-over-http
44
good_url = "https://www.github.com"
5-
# deepruleid:no-auth-over-http
5+
# ruleid:no-auth-over-http
66
bad_url = "http://www.github.com"
77

88
# ruleid:no-auth-over-http
@@ -32,6 +32,10 @@ def test3():
3232
good_url = "https://www.github.com"
3333
r = requests.get(good_url, auth=('user', 'pass'))
3434

35+
def test4():
36+
# ruleid:no-auth-over-http
37+
r = requests.get(bad_url, auth=('user', 'pass'))
38+
3539
def from_import_test1(url):
3640
from requests import get, post
3741
# ok:no-auth-over-http

0 commit comments

Comments
 (0)