def test_add_build_configuration_to_set_name(mock_configs_api, mock_sets_api, mock_add_config, mock_get_entity, mock_set_id): result = buildconfigurationsets.add_build_configuration_to_set_raw(set_name='testerino', config_id=1) set_id_calls = [call(mock_sets_api, None, 'testerino'), call(mock_configs_api, 1, None)] mock_set_id.assert_has_calls(set_id_calls) mock_get_entity.assert_called_once_with(mock_configs_api, 1) mock_add_config.assert_called_once_with(id=1, body='BuildConfiguration') assert result == 'SUCCESS'
def test_add_build_configuration_to_set_name(mock_configs_api, mock_sets_api, mock_add_config, mock_get_entity, mock_set_id): result = buildconfigurationsets.add_build_configuration_to_set_raw(set_name='testerino', config_id=1) set_id_calls = [call(mock_sets_api, None, 'testerino'), call(mock_configs_api, 1, None)] mock_set_id.assert_has_calls(set_id_calls) mock_get_entity.assert_called_once_with(mock_configs_api, 1) mock_add_config.assert_called_once_with(id=1, body='BuildConfiguration') assert result == 'SUCCESS'