mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 17:39:48 +08:00
fix unit test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user