fix unit test

This commit is contained in:
Mike McLean
2022-11-08 19:23:33 -05:00
parent 46f4f449a8
commit 9287297943

View File

@@ -322,12 +322,11 @@ data:
Test that key params are correctly added into the xmd
"""
mmd = self.get_mmd()
side_tag = "SIDETAG"
params = {
"side_tag": "SIDETAG",
"rpm_component_ref_overrides": {"pkg": "f4836ea0"},
"branch": "f37",
}
}
_apply_xmd_params(mmd, params)
xmd = mmd.get_xmd()
@@ -467,4 +466,7 @@ class TestUtilsComponentReuse:
):
submit_module_build(db_session, "foo", mmd_copy, {"branch": "private-foo"}, version)
# re-copy because submit_module_build could modify xmd
mmd_copy = mmd.copy()
mmd_copy.set_xmd({})
submit_module_build(db_session, "foo", mmd_copy, {"branch": "otherbranch"}, version)