Make the DNF minrate setting configurable when loading repos

This commit is contained in:
mprahl
2019-10-01 10:00:12 -04:00
parent 2796b9e6a1
commit 164f592c1d
3 changed files with 15 additions and 3 deletions

View File

@@ -419,8 +419,11 @@ def test_get_rpms_in_external_repo(mock_makedirs, mock_dnf_base):
# Test that i686 is mapped to i386 using the koji.canonArch().
mock_dnf_base.return_value.repos.add_new_repo.assert_called_with(
'repo_i386', mock_dnf_base.return_value.conf,
baseurl=['http://domain.local/repo/latest/i386/'])
"repo_i386",
mock_dnf_base.return_value.conf,
baseurl=["http://domain.local/repo/latest/i386/"],
minrate=conf.dnf_minrate,
)
def test_get_rpms_in_external_repo_invalid_repo_url():