tests/unittests/core/io/test_config.py
def yaml_path():
    """Create a temporary yaml file and return the path"""
    file_path = "./my.yaml"
    with open(file_path, "w") as f:
        f.write(yaml.dump({"test": "from my yaml!"}))

    yield file_path

    os.remove(file_path)
Create a temporary yaml file and return the path
Create a temporary yaml file and return the path
Create a temporary yaml file and return the path
def yaml_path():
    file_path = "./my.yaml"
    with open(file_path, "w") as f:
        f.write(yaml.dump({"test": "from my yaml!"}))
    yield file_path
    os.remove(file_path)
def yaml_path ( ) : file_path = "./my.yaml" with open ( file_path , "w" ) as f : f . write ( yaml . dump ( { "test" : "from my yaml!" } ) ) yield file_path os . remove ( file_path )
Create a temporary yaml file and return the path
Create a temporary yaml file and return the path
"""Create a temporary yaml file and return the path"""