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
But, the main() function expects a a parliament Context that contains a Flask request
from parliament import Context
from flask import Request
...
def main(context: Context):
"""
Function template
The context parameter contains the Flask request object and any
CloudEvent received with the request.
"""
...
It should probably generate a context with some mock request. This is what I did for my function, which expects to be invoked with a parameter named descriptions:
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.
The generated test code invoke sthe function's
main()
entrypoint with an empty dictionary:See code here
But, the main() function expects a a parliament Context that contains a Flask request
It should probably generate a context with some mock request. This is what I did for my function, which expects to be invoked with a parameter named
descriptions
:The text was updated successfully, but these errors were encountered: