@patch('cloudify.workflows.local.init_env')
@patch('cloudify_cli.local._install_plugins')
def test_init_install_plugins(self, install_plugins_mock, *_):
    blueprint_path = os.path.join(BLUEPRINTS_DIR, 'local', 'blueprint_with_plugins.yaml')
    command = 'cfy init {0} --install-plugins'.format(blueprint_path)
    self.invoke(command)
    install_plugins_mock.assert_called_with(blueprint_path=blueprint_path)
@patch('cloudify.workflows.local.init_env')
@patch('cloudify_cli.local._install_plugins')
def test_init_install_plugins(self, install_plugins_mock, *_):
    blueprint_path = os.path.join(BLUEPRINTS_DIR, 'local', 'blueprint_with_plugins.yaml')
    command = 'cfy init {0} --install-plugins'.format(blueprint_path)
    self.invoke(command)
    install_plugins_mock.assert_called_with(blueprint_path=blueprint_path)