blob: 58872e3fc0dfd0658a460db33b451c67f751d2f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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(), [])
|