From 190b99b39fa1a574c41d074e53821640ed08bedb Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sat, 26 Dec 2015 14:44:27 -0500 Subject: Remove half-backed tests refactoring --- tests/test_basic.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests/test_basic.py') diff --git a/tests/test_basic.py b/tests/test_basic.py index 471e383..1c3a77a 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -37,6 +37,25 @@ class DotfilesTestCase(unittest.TestCase): os.path.realpath(path1), os.path.realpath(path2)) + def test_sync(self): + """Basic sync operation.""" + + touch(os.path.join(self.repository, 'foo')) + + dotfiles = Dotfiles(homedir=self.homedir, + path=self.repository, + prefix='', + ignore=[], + externals={}, + packages=[], + dry_run=False) + + dotfiles.sync() + + self.assertPathEqual( + os.path.join(self.homedir, '.foo'), + os.path.join(self.repository, 'foo')) + def test_force_sync_directory(self): """Test forced sync when the dotfile is a directory. -- cgit v1.2.3