MCPcopy
hub / github.com/django/django / async_sensitive_function

Function async_sensitive_function

tests/view_tests/views.py:201–209  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

199@sensitive_variables("sauce")
200@sensitive_post_parameters("bacon-key", "sausage-key")
201async def async_sensitive_function(request):
202 # Do not just use plain strings for the variables' values in the code so
203 # that the tests don't return false positives when the function's source is
204 # displayed in the exception report.
205 cooked_eggs = "".join(["s", "c", "r", "a", "m", "b", "l", "e", "d"]) # NOQA
206 sauce = "".join( # NOQA
207 ["w", "o", "r", "c", "e", "s", "t", "e", "r", "s", "h", "i", "r", "e"]
208 )
209 raise Exception
210
211
212async def async_sensitive_view_nested(request):

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected