40 @param context security context object |
40 @param context security context object |
41 @type SecurityContext |
41 @type SecurityContext |
42 @param config dictionary with configuration data |
42 @param config dictionary with configuration data |
43 @type dict |
43 @type dict |
44 """ |
44 """ |
45 http_verbs = ("get", "options", "head", "post", "put", "patch", "delete") |
45 httpVerbs = ("get", "options", "head", "post", "put", "patch", "delete") |
46 if ( |
46 if ( |
47 "requests" in context.callFunctionNameQual |
47 "requests" in context.callFunctionNameQual |
48 and context.callFunctionName in http_verbs |
48 and context.callFunctionName in httpVerbs |
49 and context.checkCallArgValue("verify", "False") |
49 and context.checkCallArgValue("verify", "False") |
50 ): |
50 ): |
51 reportError( |
51 reportError( |
52 context.getLinenoForCallArg("verify") - 1, |
52 context.getLinenoForCallArg("verify") - 1, |
53 context.getOffsetForCallArg("verify"), |
53 context.getOffsetForCallArg("verify"), |