blob: f2cd97905d8830c85cc8de26af5cdc4239165c93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from dotfiles.cli 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(), [])
|