f7d1f15738a979db71201a2906f560fbb1f1b862,tests/test_policies.py,TestTwoStageFallbackPolicy,test_ask_confirmation,#TestTwoStageFallbackPolicy#Any#Any#,457

Before Change



        scores = trained_policy.predict_action_probabilities(tracker, domain)
        index = scores.index(max(scores))
        assert domain.action_names[index] == "action_ask_confirmation"

    def test_confirmation(self, trained_policy, domain):
        events = [ActionExecuted(action_name=ACTION_LISTEN_NAME),
                  user_uttered("greet", 0.2),

After Change


        events = [ActionExecuted(ACTION_LISTEN_NAME),
                  user_uttered("Hi", 0.2)]

        next_action = self._get_next_action(trained_policy, events,
                                            default_domain)

        assert next_action == ACTION_DEFAULT_ASK_CONFIRMATION

    def test_confirmation(self, default_dispatcher_collecting, default_domain):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: RasaHQ/rasa
Commit Name: f7d1f15738a979db71201a2906f560fbb1f1b862
Time: 2018-12-06
Author: t.wochinger@rasa.com
File Name: tests/test_policies.py
Class Name: TestTwoStageFallbackPolicy
Method Name: test_ask_confirmation


Project Name: RasaHQ/rasa
Commit Name: f7d1f15738a979db71201a2906f560fbb1f1b862
Time: 2018-12-06
Author: t.wochinger@rasa.com
File Name: tests/test_policies.py
Class Name: TestTwoStageFallbackPolicy
Method Name: test_unknown_instead_confirmation


Project Name: RasaHQ/rasa
Commit Name: f7d1f15738a979db71201a2906f560fbb1f1b862
Time: 2018-12-06
Author: t.wochinger@rasa.com
File Name: tests/test_policies.py
Class Name: TestTwoStageFallbackPolicy
Method Name: test_denied_clarification_confirmation


Project Name: RasaHQ/rasa
Commit Name: f7d1f15738a979db71201a2906f560fbb1f1b862
Time: 2018-12-06
Author: t.wochinger@rasa.com
File Name: tests/test_policies.py
Class Name: TestTwoStageFallbackPolicy
Method Name: test_confirm_clarification