(
content_type="application/json",
x_content_type_options="nosniff",
content_security_policy="",
)
| 32 | |
| 33 | |
| 34 | def create_headers( |
| 35 | content_type="application/json", |
| 36 | x_content_type_options="nosniff", |
| 37 | content_security_policy="", |
| 38 | ): |
| 39 | return Headers( |
| 40 | { |
| 41 | "Content-Type": content_type, |
| 42 | "X-Content-Type-Options": x_content_type_options, |
| 43 | "Content-Security-Policy": content_security_policy, |
| 44 | } |
| 45 | ) |
| 46 | |
| 47 | |
| 48 | class SecurityValidatorMiddlewareTest(tb_test.TestCase): |
no outgoing calls
no test coverage detected
searching dependent graphs…