def METHOD_NAME(puppet_config):
    """
    Test to execute a puppet run
    """
    mock_empty_lst = []
    mock = MagicMock(return_value={"A": "B"})
    with patch.object(salt.utils.args, "clean_kwargs", mock):
        cmd_run_all_mock = MagicMock(return_value={"retcode": 0})
        cmd_run_mock = MagicMock(side_effect=[puppet_config, mock_empty_lst])
        with patch.dict(
            puppet.__salt__, {"cmd.run_all": cmd_run_all_mock, "cmd.run": cmd_run_mock}
        ):
            ret = puppet.run()
            assert ret