a7d91711739a273647288ed60fbbb7012986c6cf,tests/core/test_ensemble.py,,test_form_wins_over_everything_else,#Any#,244

Before Change


        utilities.user_uttered("test", 1),
    ]
    tracker = DialogueStateTracker.from_events("test", events, [])
    result, best_policy = ensemble.probabilities_using_best_policy(
        tracker, domain, RegexInterpreter()
    )

    max_confidence_index = result.index(max(result))
    next_action = rasa.core.actions.action.action_for_index(
        max_confidence_index, domain, None
    )

After Change


    )

    index_of_form_policy = 0
    assert (
        prediction.policy_name == f"policy_{index_of_form_policy}_{FormPolicy.__name__}"
    )
    assert next_action.name() == form_name


def test_fallback_wins_over_mapping():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: RasaHQ/rasa
Commit Name: a7d91711739a273647288ed60fbbb7012986c6cf
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: tests/core/test_ensemble.py
Class Name:
Method Name: test_form_wins_over_everything_else


Project Name: RasaHQ/rasa
Commit Name: a7d91711739a273647288ed60fbbb7012986c6cf
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: tests/core/test_ensemble.py
Class Name:
Method Name: test_fallback_wins_over_mapping


Project Name: RasaHQ/rasa
Commit Name: a7d91711739a273647288ed60fbbb7012986c6cf
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: tests/core/test_ensemble.py
Class Name:
Method Name: test_mapping_wins_over_form


Project Name: RasaHQ/rasa
Commit Name: a7d91711739a273647288ed60fbbb7012986c6cf
Time: 2020-11-05
Author: t.wochinger@rasa.com
File Name: tests/core/test_ensemble.py
Class Name:
Method Name: test_fallback_mapping_restart