def test_labels_from_user_params(workflow): workflow.user_params["release"] = "42" runner = PreBuildPluginsRunner(workflow, []) plugin = runner.create_instance_from_plugin(AddLabelsPlugin, {}) assert plugin.labels == {"release": "42"}
def test_append_from_user_params(workflow, flatpak, isolated, append): workflow.user_params["flatpak"] = flatpak workflow.user_params["isolated"] = isolated add_koji_map_in_workflow(workflow, hub_url='', root_url='') session = MockedClientSessionGeneral('') flexmock(koji, ClientSession=session) runner = PreBuildPluginsRunner(workflow, []) plugin = runner.create_instance_from_plugin(BumpReleasePlugin, {}) assert plugin.append == append