From 0dc270976844bc71c08868913066d8a1df02b7fd Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 19 Feb 2019 08:56:17 +0100 Subject: [PATCH] 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. --- test/test_helpers_repo_missing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helpers_repo_missing.py b/test/test_helpers_repo_missing.py index 8ce0fb0b..16637e31 100644 --- a/test/test_helpers_repo_missing.py +++ b/test/test_helpers_repo_missing.py @@ -141,7 +141,7 @@ def test_get_relevant_packages(args, monkeypatch): def test_generate_output_format(args, monkeypatch): """ 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", "depends": ["depend1", "depend2"]} monkeypatch.setattr(pmb.helpers.package, "get", stub)