mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Ensure changes to webroot_map aren't reflected in cli.DEFAULTS
This commit is contained in:
parent
b57677b16a
commit
26316fb222
1 changed files with 6 additions and 0 deletions
|
|
@ -490,6 +490,12 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
|||
conflicts += ['--staging']
|
||||
self._check_server_conflict_message(short_args, conflicts)
|
||||
|
||||
def test_defaults_global(self):
|
||||
namespace = self._get_argument_parser()([])
|
||||
namespace.webroot_map['example.com'] = '/var/www/html'
|
||||
|
||||
self.assertTrue(cli.DEFAULTS != namespace.webroot_map)
|
||||
|
||||
def _certonly_new_request_common(self, mock_client, args=None):
|
||||
with mock.patch('certbot.main._treat_as_renewal') as mock_renewal:
|
||||
mock_renewal.return_value = ("newcert", None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue