Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

        def init(**kwargs):
    return M(**kwargs)
        


src/u/n/unholster.milieu-1.0.0/test/test_main.py   unholster.milieu(Download)
        fin = prepare_env(data)
        request.addfinalizer(fin)
        return milieu.init()
    else:
        data = {
        def fin():
            f.delete()
        return milieu.init(path=f.name)
 
def test_from_env(prefix):
    M = milieu.init(env_prefix=prefix)
def test_from_file(file):
    M = milieu.init(path=file.name)
    assert M.FOO == 'filefoo'
    assert M.BAR == 'filebar'
    assert M.FILEONLY == 'file'
 
def test_env_precedence(prefix, file):
    M = milieu.init(env_prefix=prefix, path=file.name)