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 -.
This commit is contained in:
Owen W. Taylor
2020-12-01 15:50:39 -05:00
committed by breilly
parent ba82e8b5a6
commit 113e806ae5

View File

@@ -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):