From a1c63b3585436de59ffebaf25f9d9e56424cbce1 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Thu, 31 Dec 2015 11:03:55 -0500 Subject: Rename existing cli files I'm in the process of reimplementing the CLI using click and this new implementation will take the place of the existing one once it's feature complete. --- tests/test_cli_orig.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_cli_orig.py (limited to 'tests') diff --git a/tests/test_cli_orig.py b/tests/test_cli_orig.py new file mode 100644 index 0000000..58872e3 --- /dev/null +++ b/tests/test_cli_orig.py @@ -0,0 +1,16 @@ +from dotfiles.cli_orig import dispatch + + +def test_dispatch(): + """Test that the force option is handed on to the sync method.""" + + class MockDotfiles: + def sync(self, files=None, force=False): + assert force + + class MockNamespace: + def __init__(self): + self.action = 'sync' + self.force = True + + dispatch(MockDotfiles(), MockNamespace(), []) -- cgit v1.2.3