Beispiel #1
0
def test_init():
    with temp_cwd(prefix='pot-test'):
        make_hierarchy({
            'dotfiles': {
                '.gitconfig': '',
                '.vimrc': '',
                '.vim': {},
            }
        })
        pot.init(path='.')
        expected_config = Config(dotfiles=[DotFile('.gitconfig'), DotFile('.vimrc'), DotFile('.vim'), ])
        with open('config.yaml') as fd:
            builded_config = Config.from_yaml(fd)
        eq_(expected_config, builded_config)