Skip to content

Commit

Permalink
fix set_slots test
Browse files Browse the repository at this point in the history
  • Loading branch information
Urkem committed Oct 9, 2023
1 parent 994ec5f commit d966b24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/policies/test_flow_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ def test_executor_does_not_get_tripped_if_an_action_is_predicted_in_loop():
foo_flow:
steps:
- id: "1"
set_slot:
foo: bar
set_slots:
- foo: bar
next: "2"
- id: "2"
action: action_listen
Expand Down
12 changes: 12 additions & 0 deletions tests/shared/utils/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,18 @@ def validate() -> None:
action: utter_payment_failed
- action: utter_failed_payment_handover
- action: utter_failed_handoff""",
"""
flows:
foo_flow:
steps:
- id: "1"
set_slots:
- foo: bar
next: "2"
- id: "2"
action: action_listen
next: "1"
"""
],
)
def test_flow_validation_pass(flow_yaml: str) -> None:
Expand Down

0 comments on commit d966b24

Please sign in to comment.