blob: e8a51cc6216056371819de540c9ccca5bdc81627 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from dotfiles.core import Dotfiles
def test_sync(tmpdir):
"""Basic sync operation."""
dotfile = tmpdir.ensure('Dotfiles/foo')
symlink = tmpdir.join('.foo')
Dotfiles(homedir=str(tmpdir),
path=str(dotfile.dirname),
prefix='',
ignore=[],
externals={},
packages=[],
dry_run=False).sync()
assert symlink.check(link=1)
assert symlink.samefile(dotfile)
|