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:24:59 +02:00
|
|
|
from ansible_collections.community.general.plugins.modules import cpanm
|
2023-09-12 14:24:10 +02:00
|
|
|
from .helper import Helper
|
2021-04-18 10:55:47 +02:00
|
|
|
|
|
|
|
|
2023-09-12 14:24:10 +02:00
|
|
|
helper = Helper.from_file(cpanm.main, "tests/unit/plugins/modules/test_cpanm.yaml")
|
2023-09-12 06:42:33 +02:00
|
|
|
patch_bin = helper.cmd_fixture
|
2023-09-12 14:24:10 +02:00
|
|
|
test_module = helper.test_module
|