diff options
author | Jon Bernard <jbernard@tuxion.com> | 2015-12-26 14:44:27 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2015-12-28 14:15:15 -0500 |
commit | 190b99b39fa1a574c41d074e53821640ed08bedb (patch) | |
tree | 5241581a07b5bbff42dbd1839a13d76075ec2a00 /tests/test_basic.py | |
parent | c8c4b42b009897c31310960984819ca7a95a2429 (diff) | |
download | dotfiles-190b99b39fa1a574c41d074e53821640ed08bedb.tar.gz dotfiles-190b99b39fa1a574c41d074e53821640ed08bedb.tar.bz2 dotfiles-190b99b39fa1a574c41d074e53821640ed08bedb.zip |
Remove half-backed tests refactoring
Diffstat (limited to 'tests/test_basic.py')
-rw-r--r-- | tests/test_basic.py | 19 |
1 files changed, 19 insertions, 0 deletions
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. |