Fix `ReminderCancelled` tests
@@ -4,9 +4,10 @@ from datetime import datetime
import rasa_sdk.events as events
-def test_reminder_scheduled_correctly():
+@pytest.mark.parametrize("intent", ["greet", "bye"])
+def test_reminder_scheduled_correctly(intent):
with pytest.warns(None):
- events.ReminderScheduled("greet", datetime.now())
+ events.ReminderScheduled(intent, datetime.now())
@pytest.mark.parametrize("intent", ["action_something", "utter_greet"])
@@ -15,12 +16,13 @@ def test_reminder_scheduled_with_action(intent):
events.ReminderScheduled(intent, datetime.now())
-def test_reminder_cancelled_correctly():
+@pytest.mark.parametrize("intent", ["greet", "bye"])
+def test_reminder_cancelled_correctly(intent):
with pytest.warns(None):
- events.ReminderScheduled("greet", datetime.now())
+ events.ReminderCancelled(name="utter_something", intent_name=intent)
@pytest.mark.parametrize("intent", ["action_something", "utter_greet"])
def test_reminder_cancelled_with_action(intent):
with pytest.warns(FutureWarning):
- events.ReminderScheduled("action_greet", datetime.now())
+ events.ReminderCancelled(name="utter_something", intent_name=intent)
