mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Mock existence of nginx binary
This commit is contained in:
@@ -49,6 +49,10 @@ def get_nginx_configurator(
|
||||
|
||||
backups = os.path.join(work_dir, "backups")
|
||||
|
||||
with mock.patch("letsencrypt_nginx.configurator.le_util."
|
||||
"exe_exists") as mock_exe_exists:
|
||||
mock_exe_exists.return_value = True
|
||||
|
||||
config = configurator.NginxConfigurator(
|
||||
config=mock.MagicMock(
|
||||
nginx_server_root=config_path,
|
||||
|
||||
Reference in New Issue
Block a user