2022-11-07 20:15:00 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2022-08-13 16:56:40 +02:00
|
|
|
# Author: Alexei Znamensky (russoz@gmail.com)
|
|
|
|
# Largely adapted from test_redhat_subscription by
|
|
|
|
# Jiri Hnidek (jhnidek@redhat.com)
|
|
|
|
#
|
2022-08-08 23:23:08 +02:00
|
|
|
# Copyright (c) Alexei Znamensky (russoz@gmail.com)
|
|
|
|
# Copyright (c) Jiri Hnidek (jhnidek@redhat.com)
|
2021-04-18 10:55:47 +02:00
|
|
|
#
|
2022-08-05 12:28:29 +02:00
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2021-04-18 10:55:47 +02:00
|
|
|
|
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
|
2023-09-10 21:45:36 +02:00
|
|
|
from ansible_collections.community.general.plugins.modules import cpanm
|
2023-09-13 07:58:02 +02:00
|
|
|
from .helper import Helper
|
2021-04-18 10:55:47 +02:00
|
|
|
|
|
|
|
|
2023-09-13 07:58:02 +02:00
|
|
|
helper = Helper.from_file(cpanm.main, "tests/unit/plugins/modules/test_cpanm.yaml")
|
2023-09-12 08:00:02 +02:00
|
|
|
patch_bin = helper.cmd_fixture
|
2023-09-13 07:58:02 +02:00
|
|
|
test_module = helper.test_module
|