https://flyte.org logo
#ask-the-community
Title
# ask-the-community
l

Len Strnad

12/08/2023, 5:00 PM
Hey, All. I am trying out the
approve
functionality defined here. I would like to create an e2e test for a workflow that uses it, but I want the approval step to succeed automatically in order to continue with testing. Any thoughts on how to accomplish this?
k

Ketan (kumare3)

12/09/2023, 12:16 AM
Automatic means you can do programmatic - you can use flytekit.remote to Approve
l

Len Strnad

12/09/2023, 12:23 AM
Of course, I just thought of this on my run. True e2e would probably be more like triggering the workflow with remote in which case this approval method is easy, but I am calling the workflow locally. Ill look to see if remote is still a possibility with local workflow executive, but I guess I could always mock
k

Ketan (kumare3)

12/09/2023, 4:41 AM
Ohh locally - interesting never thought about implementing anything