tests/unittests/core/io/test_config.py
def subdict_yaml_path():
    """Create a temporary yaml file with subdicts and return the path"""
    file_path = "./my.yaml"
    with open(file_path, "w") as f:
        f.write(
            yaml.dump(
                {
                    "test": {"i am": "a sub-dict"},
                    "test2": {"test": {"me is": "sub-conf sub-dict"}},
                }
            )
        )

    yield file_path

    os.remove(file_path)
Create a temporary yaml file with subdicts and return the path
Create a temporary yaml file with subdicts and return the path
Create a temporary yaml file with subdicts and return the path
def subdict_yaml_path():
    file_path = "./my.yaml"
    with open(file_path, "w") as f:
        f.write(
            yaml.dump(
                {
                    "test": {"i am": "a sub-dict"},
                    "test2": {"test": {"me is": "sub-conf sub-dict"}},
                }
            )
        )
    yield file_path
    os.remove(file_path)
def subdict_yaml_path ( ) : file_path = "./my.yaml" with open ( file_path , "w" ) as f : f . write ( yaml . dump ( { "test" : { "i am" : "a sub-dict" } , "test2" : { "test" : { "me is" : "sub-conf sub-dict" } } , } ) ) yield file_path os . remove ( file_path )
Create a temporary yaml file with subdicts and return the path
Create a temporary yaml file with subdicts and return the path
"""Create a temporary yaml file with subdicts and return the path"""