-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrap up and tests for flow trigger action #12938
wrap up and tests for flow trigger action #12938
Conversation
@@ -22,54 +22,81 @@ | |||
structlogger = structlog.get_logger(__name__) | |||
|
|||
|
|||
class FlowTriggerAction(action.Action): | |||
"""Action which implements and executes the form logic.""" | |||
class ActionTriggerFlow(action.Action): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to align with other trigger action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one suggestion
assert len(event.value) == 2 | ||
assert event.value[1]["type"] == UserFlowStackFrame.type() | ||
assert event.value[1]["flow_id"] == "foo" | ||
assert event.value[1]["frame_type"] == FlowStackFrameType.INTERRUPT.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also test that it's a regular frame when there is nothing there yet :)
Kudos, SonarCloud Quality Gate passed! 4 Bugs 0.0% Coverage The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Proposed changes:
fixes https://rasahq.atlassian.net/browse/ENG-584