rasa/core/test.py
def log_failed_stories(failed, out_directory):
    """Take stories as a list of dicts."""
    if not out_directory:
        return
    with open(os.path.join(out_directory, 'failed_stories.md'), 'w',
              encoding="utf-8") as f:
        if len(failed) == 0:
            f.write("<!-- All stories passed -->")
        else:
            for failure in failed:
                f.write(failure.export_stories())
                f.write("\n\n")
Take stories as a list of dicts.
Take stories as a list of dicts.
Take stories as a list of dicts .
def log_failed_stories(failed, out_directory):
    if not out_directory:
        return
    with open(os.path.join(out_directory, 'failed_stories.md'), 'w',
              encoding="utf-8") as f:
        if len(failed) == 0:
            f.write("<!-- All stories passed -->")
        else:
            for failure in failed:
                f.write(failure.export_stories())
                f.write("\n\n")
def log_failed_stories ( failed , out_directory ) : if not out_directory : return with open ( os . path . join ( out_directory , 'failed_stories.md' ) , 'w' , encoding = "utf-8" ) as f : if len ( failed ) == 0 : f . write ( "<!-- All stories passed -->" ) else : for failure in failed : f . write ( failure . export_stories ( ) ) f . write ( "\n\n" )
Take stories as a list of dicts.
Take stories as a list of dicts .
"""Take stories as a list of dicts."""
failed
out_directory