async def test_source_in_failed_stories(tmpdir: Path, default_agent: Agent):
    stories_path = str((tmpdir / FAILED_STORIES_FILE))
    (await evaluate_stories(stories=E2E_STORY_FILE_UNKNOWN_ENTITY, agent=default_agent, out_directory=str(tmpdir), max_stories=None, e2e=False))
    failed_stories = rasa.shared.utils.io.read_file(stories_path)
    assert (f'story: simple_story_with_unknown_entity ({E2E_STORY_FILE_UNKNOWN_ENTITY})' in failed_stories)
async def test_source_in_failed_stories(tmpdir: Path, default_agent: Agent):
    stories_path = str((tmpdir / FAILED_STORIES_FILE))
    (await evaluate_stories(stories=E2E_STORY_FILE_UNKNOWN_ENTITY, agent=default_agent, out_directory=str(tmpdir), max_stories=None, e2e=False))
    failed_stories = rasa.shared.utils.io.read_file(stories_path)
    assert (f'story: simple_story_with_unknown_entity ({E2E_STORY_FILE_UNKNOWN_ENTITY})' in failed_stories)