From 113e806ae5592b4e307143bc3e94f790ece71366 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 1 Dec 2020 15:50:39 -0500 Subject: [PATCH] test_mock.py: fix NVR's in fake rpm -qf output The rpm -qf call in KojiContentGenerator.__get_rpms has VERSION and RELEASE separated by a space, not a -. --- tests/test_builder/test_mock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_builder/test_mock.py b/tests/test_builder/test_mock.py index d27e7d9c..391a346b 100644 --- a/tests/test_builder/test_mock.py +++ b/tests/test_builder/test_mock.py @@ -151,7 +151,7 @@ class TestMockModuleBuilder: ] rpm_qf_output = dedent("""\ ed 0 1.14.1 4.module+24957a32 x86_64 - mksh 0 56b-1 module+24957a32 x86_64 + mksh 0 56b 1.module+24957a32 x86_64 module-build-macros 0 0.1 1.module+24957a32 noarch """) with mock.patch("os.listdir", return_value=rpms): @@ -176,7 +176,7 @@ class TestMockModuleBuilder: ] rpm_qf_output = dedent("""\ ed 0 1.14.1 4.module+24957a32 x86_64 - mksh 0 56b-1 module+24957a32 x86_64 + mksh 0 56b 1.module+24957a32 x86_64 """) with mock.patch("os.listdir", return_value=rpms): with mock.patch("subprocess.check_output", return_value=rpm_qf_output):