(request)
| 221 | @sensitive_variables() |
| 222 | @sensitive_post_parameters() |
| 223 | def paranoid_view(request): |
| 224 | # Do not just use plain strings for the variables' values in the code |
| 225 | # so that the tests don't return false positives when the function's source |
| 226 | # is displayed in the exception report. |
| 227 | cooked_eggs = "".join(["s", "c", "r", "a", "m", "b", "l", "e", "d"]) # NOQA |
| 228 | sauce = "".join( # NOQA |
| 229 | ["w", "o", "r", "c", "e", "s", "t", "e", "r", "s", "h", "i", "r", "e"] |
| 230 | ) |
| 231 | try: |
| 232 | raise Exception |
| 233 | except Exception: |
| 234 | exc_info = sys.exc_info() |
| 235 | send_log(request, exc_info) |
| 236 | return technical_500_response(request, *exc_info) |
| 237 | |
| 238 | |
| 239 | def sensitive_args_function_caller(request): |
nothing calls this directly
no test coverage detected