diff options
| author | Jon Bernard <jbernard@tuxion.com> | 2016-01-05 09:49:50 -0500 |
|---|---|---|
| committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-05 11:23:30 -0500 |
| commit | f627d48163a05801868915e69d630a2961178374 (patch) | |
| tree | 3464e598736d329765b525800f343aba3cf35ea6 /test_dotfiles.py | |
| parent | 6735cda88aac20d21aecd239927311f07ef4f7f2 (diff) | |
| download | dotfiles-f627d48163a05801868915e69d630a2961178374.zip | |
Rename sync/unsync to link/unlink
I think this naming is more appropriate and intuitive
Diffstat (limited to 'test_dotfiles.py')
| -rw-r--r-- | test_dotfiles.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py index e5bdda2..1bb9a07 100644 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -102,11 +102,11 @@ class TestDotfile(object): assert name.check(file=1, link=0) @pytest.mark.parametrize('times', range(1, 4)) - def test_sync(self, repo, home, times): + def test_link(self, repo, home, times): name = home.join('.vimrc') target = repo.ensure('vimrc') - Dotfile(name, target).sync() + Dotfile(name, target).link() assert target.check(file=1, link=0) assert name.check(file=1, link=1) @@ -114,11 +114,11 @@ class TestDotfile(object): for x in range(2, times): with pytest.raises(py.error.EEXIST): - Dotfile(name, target).sync() + Dotfile(name, target).link() assert target.check(file=1, link=0) assert name.check(file=1, link=1) assert name.samefile(target) @pytest.mark.xfail(reason='not implemented yet') - def test_unsync(self): + def test_unlink(self): assert False |