From cadfa750ca0c950d61ded1dbad85beea9d152ef8 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Tue, 29 Dec 2015 07:07:28 -0500 Subject: Move CLI tests into separate file The intent is for each file in dotfiles/ to have a matching test file in tests/ so there is less confusion about which test files are testing which bits of functionality and where to look. --- tests/test_basic.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'tests/test_basic.py') diff --git a/tests/test_basic.py b/tests/test_basic.py index 20019bb..97c643c 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -6,7 +6,6 @@ import shutil import tempfile import unittest -from dotfiles.cli import dispatch from dotfiles.core import Dotfiles from dotfiles.utils import is_link_to @@ -61,20 +60,6 @@ class DotfilesTestCase(unittest.TestCase): os.path.join(self.homedir, '.lastpass'), '/tmp') - def test_dispatch(self): - """Test that the force option is handed on to the sync method.""" - - class MockDotfiles(object): - def sync(self, files=None, force=False): - assert force - - class MockNamespace(object): - def __init__(self): - self.action = 'sync' - self.force = True - - dispatch(MockDotfiles(), MockNamespace(), []) - def test_move_repository(self): """Test the move() method for a Dotfiles repository.""" -- cgit v1.2.3