aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_prefix.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-03 15:01:40 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-03 22:39:43 -0500
commit5c3c91c43e12b40a618ad471ba24950d5b6d1ea0 (patch)
treee738fdd7e322f86cc609b630f2e19e4eff7f71e6 /tests/test_prefix.py
parent48e781a75c8b5d20c1e9c54c92dd31e641dfd121 (diff)
downloaddotfiles-5c3c91c43e12b40a618ad471ba24950d5b6d1ea0.tar.gz
dotfiles-5c3c91c43e12b40a618ad471ba24950d5b6d1ea0.tar.bz2
dotfiles-5c3c91c43e12b40a618ad471ba24950d5b6d1ea0.zip
Consolidate tests into a single file
Diffstat (limited to 'tests/test_prefix.py')
-rw-r--r--tests/test_prefix.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/test_prefix.py b/tests/test_prefix.py
deleted file mode 100644
index 636a7d1..0000000
--- a/tests/test_prefix.py
+++ /dev/null
@@ -1,41 +0,0 @@
-import pytest
-from dotfiles.core import Dotfiles
-
-
-@pytest.mark.xfail()
-def test_prefix(tmpdir):
- """Test basic sync when using a non-default prefix."""
-
- dotfile = tmpdir.ensure('Dotfiles/_vimrc')
- symlink = tmpdir.join('.vimrc')
-
- 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)
-
-
-def test_prefix_with_package(tmpdir):
- """Test syncing a package when using a non-default prefix."""
-
- repository = tmpdir.ensure('Dotfiles', dir=1)
- dotfile = repository.ensure('.config/awesome/testfile')
-
- Dotfiles(homedir=str(tmpdir),
- path=str(repository),
- prefix='.',
- ignore=[],
- externals={},
- packages=['.config'],
- dry_run=False,
- quiet=True).sync()
-
- assert tmpdir.join('.config').check(dir=1)
- assert tmpdir.join('.config/awesome').check(link=1)
- assert tmpdir.join('.config/awesome').samefile(dotfile.dirname)