This commit is contained in:
Brad Warren 2017-10-02 14:33:49 -07:00 committed by Peter Eckersley
parent 34d78ff626
commit 5f6b1378ec
2 changed files with 5 additions and 0 deletions

View file

@ -129,6 +129,7 @@ ZERO_ARG_ACTIONS = set(("store_const", "store_true",
# This dictionary is used recursively, so if A modifies B and B modifies C,
# it is determined that C was modified by the user if A was modified.
VAR_MODIFIERS = {"account": set(("server",)),
"renew_hook": set(("deploy_hook",)),
"server": set(("dry_run", "staging",)),
"webroot_map": set(("webroot_path",))}

View file

@ -438,6 +438,10 @@ class SetByCliTest(unittest.TestCase):
def setUp(self):
reload_module(cli)
def test_deploy_hook(self):
self.assertTrue(_call_set_by_cli(
'renew_hook', '--deploy-hook foo'.split(), 'renew'))
def test_webroot_map(self):
args = '-w /var/www/html -d example.com'.split()
verb = 'renew'