summaryrefslogtreecommitdiffstats
path: root/tests/test_core.py
blob: 640cac9c96386cae6ad4086b4155027cee89cb2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from dotfiles.core import Dotfiles as Repository


def test_sync(homedir):
    """Basic sync operation."""

    contents = {'.foo': True,
                '.bar': True,
                '.baz': False}

    homedir.setup(contents)

    Repository(path=homedir.repo,
               homedir=homedir.path).sync()

    # .baz should now exist and link to the correct location
    contents['.baz'] = True
    homedir.verify(contents)