(testcase, yaml_file)
dump HAR entries to yaml testcase
dump HAR entries to yaml testcase
dump HAR entries to yaml testcase
def dump_yaml(testcase, yaml_file):
    """ dump HAR entries to yaml testcase
    """
    logger.info("dump testcase to YAML format.")

    with open(yaml_file, "w", encoding="utf-8") as outfile:
        yaml.dump(
            testcase, outfile, allow_unicode=True, default_flow_style=False, indent=4
        )

    logger.info("Generate YAML testcase successfully: {}".format(yaml_file))
def dump_yaml ( testcase , yaml_file ) : logger . info ( "dump testcase to YAML format." ) with open ( yaml_file , "w" , encoding = "utf-8" ) as outfile : yaml . dump ( testcase , outfile , allow_unicode = True , default_flow_style = False , indent = 4 ) logger . info ( "Generate YAML testcase successfully: {}" . format ( yaml_file ) )