diff --git a/tests/helpers.py b/tests/helpers.py index e880160..5ebc6c1 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -13,7 +13,7 @@ from unittest import TestCase import yaml -from dotdrop.options import Options, ENV_NODEBUG +from dotdrop.options import Options from dotdrop.linktypes import LinkTypes from dotdrop.utils import strip_home @@ -144,7 +144,7 @@ def load_options(confpath, profile): args = _fake_args() args['--cfg'] = confpath args['--profile'] = profile - args['--debug'] = True + args['--verbose'] = True # and get the options o = Options(args=args) o.profile = profile @@ -154,8 +154,6 @@ def load_options(confpath, profile): o.import_link = LinkTypes.NOLINK o.install_showdiff = True o.debug = True - if ENV_NODEBUG in os.environ: - o.debug = False o.compare_dopts = '' o.variables = {} return o diff --git a/tests/test_import.py b/tests/test_import.py index 25bb861..98efdea 100644 --- a/tests/test_import.py +++ b/tests/test_import.py @@ -194,6 +194,7 @@ class TestImport(unittest.TestCase): edit_content(dotfile1, editcontent) o.safe = False o.update_path = [dotfile1] + o.debug = True cmd_update(o) c2 = open(indt1, 'r').read() self.assertTrue(editcontent == c2) diff --git a/tests/test_update.py b/tests/test_update.py index 2fdee34..885fbd6 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -105,6 +105,7 @@ class TestUpdate(unittest.TestCase): o = load_options(confpath, profile) o.safe = False o.update_showpatch = True + o.debug = True trans = Transform('trans', 'cp -r {0} {1}') d3tb = os.path.basename(d3t) for dotfile in o.dotfiles: