@pytest.mark.parametrize('test_file', ['data/test_yaml_stories/test_full_retrieval_intent_wrong_prediction.yml', 'data/test_yaml_stories/test_base_retrieval_intent_wrong_prediction.yml'])
async def test_retrieval_intent_wrong_prediction(tmpdir: Path, response_selector_agent: Agent, test_file: Text):
    stories_path = str((tmpdir / FAILED_STORIES_FILE))
    (await evaluate_stories(stories=test_file, agent=response_selector_agent, out_directory=str(tmpdir), max_stories=None, e2e=True))
    failed_stories = rasa.shared.utils.io.read_file(stories_path)
    assert ('# predicted: chitchat/ask_name' in failed_stories)
@pytest.mark.parametrize('test_file', ['data/test_yaml_stories/test_full_retrieval_intent_wrong_prediction.yml', 'data/test_yaml_stories/test_base_retrieval_intent_wrong_prediction.yml'])
async def test_retrieval_intent_wrong_prediction(tmpdir: Path, response_selector_agent: Agent, test_file: Text):
    stories_path = str((tmpdir / FAILED_STORIES_FILE))
    (await evaluate_stories(stories=test_file, agent=response_selector_agent, out_directory=str(tmpdir), max_stories=None, e2e=True))
    failed_stories = rasa.shared.utils.io.read_file(stories_path)
    assert ('# predicted: chitchat/ask_name' in failed_stories)