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")