(self, context)
| 44 | yield hit |
| 45 | |
| 46 | def node_Call(self, context): |
| 47 | f_name = context.node.cached_full_name |
| 48 | |
| 49 | if f_name in ("requests.auth.HTTPBasicAuth", "requests.auth.HTTPDigestAuth"): |
| 50 | try: |
| 51 | signature = context.node.apply_signature( |
| 52 | "user", |
| 53 | "password", |
| 54 | aura_capture_args="args", |
| 55 | aura_capture_kwargs="kwargs", |
| 56 | ) |
| 57 | |
| 58 | if not isinstance(signature.args[0], (String, str)): |
| 59 | return |
| 60 | elif not isinstance(signature.args[1], (String, str)): |
| 61 | return |
| 62 | |
| 63 | user = str(signature.args[0]) |
| 64 | passwd = str(signature.args[1]) |
| 65 | |
| 66 | yield from self._gen_hit(context, user, passwd, extra={"type": "call"}) |
| 67 | except TypeError: |
| 68 | return |
| 69 | |
| 70 | def node_String(self, context): |
| 71 | if not URL_REGEX.match(context.node.value): |
nothing calls this directly
no test coverage detected