tests/test_helpers_repo_missing.py: fix test
Adjust the stub function in test_generate_output_format() to accept the replace_subpkgnames argument, which was introduced in the previous commit ("repo_missing: return pkgnames, not subpkgnames"). For some reason, this CI test only ran after the MR was merged to master and not when it ran in the MR's branch. I'm investigating this.
This commit is contained in:
parent
f3ba0de360
commit
0dc2709768
|
@ -141,7 +141,7 @@ def test_get_relevant_packages(args, monkeypatch):
|
||||||
def test_generate_output_format(args, monkeypatch):
|
def test_generate_output_format(args, monkeypatch):
|
||||||
""" Test ...repo_missing.generate_output_format() """
|
""" Test ...repo_missing.generate_output_format() """
|
||||||
|
|
||||||
def stub(args, pkgname, arch):
|
def stub(args, pkgname, arch, replace_subpkgnames=False):
|
||||||
return {"pkgname": "hello-world", "version": "1.0-r0",
|
return {"pkgname": "hello-world", "version": "1.0-r0",
|
||||||
"depends": ["depend1", "depend2"]}
|
"depends": ["depend1", "depend2"]}
|
||||||
monkeypatch.setattr(pmb.helpers.package, "get", stub)
|
monkeypatch.setattr(pmb.helpers.package, "get", stub)
|
||||||
|
|
Loading…
Reference in New Issue