Exemple #1
0
 def test_runner_composer(self, mock_deploy_composer, mock_install_network,
                          mock_setup_admin):
     runner_composer(self.OPTS, upgrade=False)
     mock_deploy_composer.assert_called_once_with(self.OPTS,
                                                  upgrade=False,
                                                  verbose=False)
     mock_setup_admin.assert_called_once_with(self.OPTS, verbose=False)
     mock_install_network.assert_called_once_with(self.OPTS, verbose=False)
Exemple #2
0
def composer(settings):
    opts = load_config(settings.settings_file)
    runner_composer(opts, upgrade=settings.upgrade, verbose=settings.verbose)