예제 #1
0
def test_list_dependencies_name(mock_configs_api, mock_get_dependencies,
                                mock_set_id):
    result = buildconfigurations.list_dependencies_raw(name='testerino')
    mock_set_id.assert_called_once_with(mock_configs_api, None, 'testerino')
    mock_get_dependencies.assert_called_once_with(id=1,
                                                  page_index=0,
                                                  page_size=200,
                                                  sort="",
                                                  q="")
    assert result == ['dep1', 'dep2']
def test_list_dependencies_name(mock_configs_api, mock_get_dependencies, mock_set_id):
    result = buildconfigurations.list_dependencies_raw(name='testerino')
    mock_set_id.assert_called_once_with(mock_configs_api, None, 'testerino')
    mock_get_dependencies.assert_called_once_with(id=1, page_index=0, page_size=200, sort="", q="")
    assert result == ['dep1', 'dep2']