From 44db88ce747f4ef671421da1de5b0b0501bb3f20 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 2 Jun 2019 13:53:00 +0200 Subject: [PATCH] fix --force-actions in tests --- dotdrop/options.py | 4 ++-- tests/helpers.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dotdrop/options.py b/dotdrop/options.py index da3def8..8e69670 100644 --- a/dotdrop/options.py +++ b/dotdrop/options.py @@ -76,7 +76,7 @@ Options: -D --showdiff Show a diff before overwriting. -P --show-patch Provide a one-liner to manually patch template. -f --force Do not ask user confirmation for anything. - -a --force-action Execute all actions even if no dotfile is installed. + -a --force-actions Execute all actions even if no dotfile is installed. -k --key Treat as a dotfile key. -V --verbose Be verbose. -d --dry Dry run. @@ -211,7 +211,7 @@ class Options(AttrMonitor): # "listfiles" specifics self.listfiles_templateonly = self.args['--template'] # "install" specifics - self.install_force_action = self.args['--force-action'] + self.install_force_action = self.args['--force-actions'] self.install_temporary = self.args['--temp'] self.install_keys = self.args[''] self.install_diff = not self.args['--nodiff'] diff --git a/tests/helpers.py b/tests/helpers.py index 5ebc6c1..45ab61e 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -127,6 +127,7 @@ def _fake_args(): args['--key'] = False args['--ignore'] = [] args['--show-patch'] = False + args['--force-actions'] = False # cmds args['list'] = False args['listfiles'] = False