From d5c33543395ad07e9581a3505c36478152f7225b Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 28 Dec 2015 14:03:52 -0500 Subject: Move prefix tests to a separate file --- tests/test_basic.py | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'tests/test_basic.py') diff --git a/tests/test_basic.py b/tests/test_basic.py index 1c3a77a..58e35ed 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -424,33 +424,6 @@ class DotfilesTestCase(unittest.TestCase): self.assertTrue(os.path.islink( os.path.join(self.homedir, '.config/gtk-3.0'))) - def test_package_and_prefix(self): - """Test syncing a package when using a non-default prefix.""" - - package_dir = os.path.join(self.repository, '.config/awesome') - os.makedirs(package_dir) - touch('%s/testfile' % package_dir) - - dotfiles = Dotfiles(homedir=self.homedir, - path=self.repository, - prefix='.', - ignore=[], - externals={}, - packages=['.config'], - dry_run=False, - quiet=True) - - dotfiles.sync() - - expected = os.path.join(self.homedir, ".config") - self.assertTrue(os.path.isdir(expected)) - - expected = os.path.join(expected, "awesome") - self.assertTrue(os.path.islink(expected)) - - expected = os.path.join(expected, "testfile") - self.assertTrue(os.path.isfile(expected)) - if __name__ == '__main__': unittest.main() -- cgit v1.2.3