From 46f4f449a8d38ea9c952c144c28f41feadfbc76d Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Tue, 23 Aug 2022 10:49:38 -0400 Subject: [PATCH] partial work --- tests/test_web/test_submit.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/test_web/test_submit.py b/tests/test_web/test_submit.py index fae3e0f1..52102787 100644 --- a/tests/test_web/test_submit.py +++ b/tests/test_web/test_submit.py @@ -324,27 +324,28 @@ data: mmd = self.get_mmd() side_tag = "SIDETAG" params = { - "side_tag": "SIDETAG", - "rpm_component_ref_overrides": {"pkg": "f4836ea0"}, - "branch": "f37", - } + "side_tag": "SIDETAG", + "rpm_component_ref_overrides": {"pkg": "f4836ea0"}, + "branch": "f37", + } _apply_xmd_params(mmd, params) xmd = mmd.get_xmd() for key in params: assert xmd["mbs"][key] == params[key] - def test_apply_side_tag_no_option(self): + def test_apply_xmd_params_no_option(self): """ Test that the xmd is unchanged when no relevant options are given """ mmd = self.get_mmd() xmd_orig = mmd.get_xmd() - _apply_side_tag(mmd, {}) + _apply_xmd_params(mmd, {}) xmd = mmd.get_xmd() assert xmd == xmd_orig - assert "side_tag" not in xmd.get("mbs", {}) + for key in ("side_tag", "rpm_component_ref_overrides", "branch"): + assert key not in xmd.get("mbs", {}) @pytest.mark.usefixtures("reuse_component_init_data")