def test_list_build_configurations_for_set_id(mock_sets_api, mock_get_configurations, mock_set_id): result = buildconfigurationsets.list_build_configurations_for_set_raw(id=1) mock_set_id.assert_called_once_with(mock_sets_api, 1, None) mock_get_configurations.assert_called_once_with(id=1, page_index=0, page_size=200, q="", sort="") assert result == 'SUCCESS'
def test_list_build_configurations_for_set_name(mock_sets_api, mock_get_configurations, mock_set_id): result = buildconfigurationsets.list_build_configurations_for_set_raw( name='testerino') mock_set_id.assert_called_once_with(mock_sets_api, None, 'testerino') mock_get_configurations.assert_called_once_with(id=1, page_index=0, page_size=200, q='', sort='') assert result == 'SUCCESS'
def test_list_build_configurations_for_set_name(mock_sets_api, mock_get_configurations, mock_set_id): result = buildconfigurationsets.list_build_configurations_for_set_raw(name='testerino') mock_set_id.assert_called_once_with(mock_sets_api, None, 'testerino') mock_get_configurations.assert_called_once_with(id=1, page_index=0, page_size=200, q='', sort='') assert result == 'SUCCESS'
def test_list_build_configurations_for_set_id(mock_sets_api, mock_get_configurations, mock_set_id): result = buildconfigurationsets.list_build_configurations_for_set_raw(id=1) mock_set_id.assert_called_once_with(mock_sets_api, 1, None) mock_get_configurations.assert_called_once_with(id=1, page_index=0, page_size=200, q="", sort="") assert result == 'SUCCESS'