From 174d674b4252c715631ec11840c2928028e9f65a Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 29 Oct 2021 18:18:20 +0200 Subject: [PATCH] fix tests --- dotdrop/options.py | 4 +++- tests/helpers.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dotdrop/options.py b/dotdrop/options.py index e43e6fa..96fd893 100644 --- a/dotdrop/options.py +++ b/dotdrop/options.py @@ -133,6 +133,7 @@ class Options(AttrMonitor): self.link_on_import = None self.chmod_on_import = None self.check_version = None + self.clear_workdir = None # args parsing self.args = {} @@ -245,7 +246,8 @@ class Options(AttrMonitor): if a.kind == Action.post] self.install_ignore = self.instignore self.install_force_chmod = self.force_chmod - self.install_clear_workdir = self.args['--workdir-clear'] or self.clear_workdir + self.install_clear_workdir = self.args['--workdir-clear'] or \ + self.clear_workdir def _apply_args_compare(self): """compare specifics""" diff --git a/tests/helpers.py b/tests/helpers.py index c29fe62..458514f 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -136,6 +136,7 @@ def _fake_args(): args['--workers'] = 1 args['--preserve-mode'] = False args['--ignore-missing'] = False + args['--workdir-clear'] = False # cmds args['profiles'] = False args['files'] = False