You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to unit test your function, you need to be able to provide a fake HttpRequest object. Unfortunately the azure.functions._abc.HttpRequest has 7 methods/attribute to override. You can use azure.function_workers.bindings.http.HttpRequest, but its __init__() wants some undocumented details (e.g. meta.TypedDataKind), and it also wants everything specified when some sensible defaults for testing would go a long way.
The text was updated successfully, but these errors were encountered:
If you want to unit test your function, you need to be able to provide a fake
HttpRequest
object. Unfortunately theazure.functions._abc.HttpRequest
has 7 methods/attribute to override. You can useazure.function_workers.bindings.http.HttpRequest
, but its__init__()
wants some undocumented details (e.g.meta.TypedDataKind
), and it also wants everything specified when some sensible defaults for testing would go a long way.The text was updated successfully, but these errors were encountered: