From 8740d8d1850ef1f186ab2f093cee3f900f518488 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 22 Mar 2020 22:00:59 +0100 Subject: [PATCH] Fix more relative imports. --- tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_a_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_cname_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_dns_view.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_fixed_address.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_host_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_member.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_mx_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_naptr_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_network.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_network_view.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_nsgroup.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_ptr_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_srv_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_zone.py | 2 +- tests/unit/modules/network/aruba/test_aruba_command.py | 2 +- tests/unit/modules/network/aruba/test_aruba_config.py | 2 +- tests/unit/modules/network/cnos/test_cnos_banner.py | 2 +- tests/unit/modules/network/cnos/test_cnos_bgp.py | 2 +- tests/unit/modules/network/cnos/test_cnos_command.py | 2 +- tests/unit/modules/network/cnos/test_cnos_config.py | 2 +- tests/unit/modules/network/cnos/test_cnos_facts.py | 2 +- tests/unit/modules/network/cnos/test_cnos_interface.py | 2 +- tests/unit/modules/network/cnos/test_cnos_l2_interface.py | 2 +- tests/unit/modules/network/cnos/test_cnos_l3_interface.py | 2 +- tests/unit/modules/network/cnos/test_cnos_linkagg.py | 2 +- tests/unit/modules/network/cnos/test_cnos_lldp.py | 2 +- tests/unit/modules/network/cnos/test_cnos_logging.py | 2 +- tests/unit/modules/network/cnos/test_cnos_static_route.py | 2 +- tests/unit/modules/network/cnos/test_cnos_system.py | 2 +- tests/unit/modules/network/cnos/test_cnos_user.py | 2 +- tests/unit/modules/network/cnos/test_cnos_vlag.py | 2 +- tests/unit/modules/network/cnos/test_cnos_vlan.py | 2 +- tests/unit/modules/network/cnos/test_cnos_vrf.py | 2 +- tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py | 2 +- tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py | 2 +- tests/unit/modules/network/icx/test_icx_banner.py | 2 +- tests/unit/modules/network/icx/test_icx_command.py | 2 +- tests/unit/modules/network/icx/test_icx_config.py | 2 +- tests/unit/modules/network/icx/test_icx_copy.py | 2 +- tests/unit/modules/network/icx/test_icx_facts.py | 2 +- tests/unit/modules/network/icx/test_icx_interface.py | 2 +- tests/unit/modules/network/icx/test_icx_l3_interface.py | 2 +- tests/unit/modules/network/icx/test_icx_linkagg.py | 2 +- tests/unit/modules/network/icx/test_icx_lldp.py | 2 +- tests/unit/modules/network/icx/test_icx_logging.py | 2 +- tests/unit/modules/network/icx/test_icx_ping.py | 2 +- tests/unit/modules/network/icx/test_icx_static_route.py | 2 +- tests/unit/modules/network/icx/test_icx_system.py | 2 +- tests/unit/modules/network/icx/test_icx_user.py | 2 +- tests/unit/modules/network/icx/test_icx_vlan.py | 2 +- tests/unit/modules/network/ingate/test_ig_config.py | 2 +- tests/unit/modules/network/ingate/test_ig_unit_information.py | 2 +- tests/unit/modules/network/routeros/test_routeros_command.py | 2 +- tests/unit/modules/network/routeros/test_routeros_facts.py | 2 +- 56 files changed, 56 insertions(+), 56 deletions(-) diff --git a/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py b/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py index 7f4a6cb0df..a6d58d90bc 100644 --- a/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py +++ b/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py @@ -10,7 +10,7 @@ __metaclass__ = type import json import pytest -from ..common import fake_xenapi_ref +from .common import fake_xenapi_ref pytestmark = pytest.mark.usefixtures('patch_ansible_module') diff --git a/tests/unit/modules/net_tools/nios/test_nios_a_record.py b/tests/unit/modules/net_tools/nios/test_nios_a_record.py index 7ad50be8ea..4e51b89467 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_a_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_a_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_a_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosARecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py b/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py index cf838e9d73..83f1984593 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_aaaa_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosAAAARecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_cname_record.py b/tests/unit/modules/net_tools/nios/test_nios_cname_record.py index d1aea81f76..12f97243eb 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_cname_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_cname_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_cname_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosCNameRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_dns_view.py b/tests/unit/modules/net_tools/nios/test_nios_dns_view.py index 679b0abfd8..5d6fe90fd7 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_dns_view.py +++ b/tests/unit/modules/net_tools/nios/test_nios_dns_view.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_dns_view from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosDnsViewModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py b/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py index 460e876d65..2be401f7ce 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py +++ b/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_fixed_address from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosFixedAddressModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_host_record.py b/tests/unit/modules/net_tools/nios/test_nios_host_record.py index a10d9ea1fe..0f7dc58aed 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_host_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_host_record.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_host_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosHostRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_member.py b/tests/unit/modules/net_tools/nios/test_nios_member.py index c9ad0fcfea..e181b70d17 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_member.py +++ b/tests/unit/modules/net_tools/nios/test_nios_member.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_member from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosMemberModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_mx_record.py b/tests/unit/modules/net_tools/nios/test_nios_mx_record.py index c5a8b8e0e1..219e86bf5a 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_mx_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_mx_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_mx_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosMXRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py b/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py index 0bb64bd8c0..510df69bbd 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_naptr_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNAPTRRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_network.py b/tests/unit/modules/net_tools/nios/test_nios_network.py index 5fabfcc24a..e14d39f54c 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_network.py +++ b/tests/unit/modules/net_tools/nios/test_nios_network.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_network from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNetworkModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_network_view.py b/tests/unit/modules/net_tools/nios/test_nios_network_view.py index 0adadddb1c..9c38951b93 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_network_view.py +++ b/tests/unit/modules/net_tools/nios/test_nios_network_view.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_network_view from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNetworkViewModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py b/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py index 9a50d6f34e..63f59bff29 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py +++ b/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_nsgroup from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNSGroupModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py b/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py index b8460c921b..7d51057dad 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_ptr_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosPTRRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_srv_record.py b/tests/unit/modules/net_tools/nios/test_nios_srv_record.py index d3978468f4..39024657c7 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_srv_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_srv_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_srv_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosSRVRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_zone.py b/tests/unit/modules/net_tools/nios/test_nios_zone.py index ec46ebf10d..a660b50ed0 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_zone.py +++ b/tests/unit/modules/net_tools/nios/test_nios_zone.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_zone from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosZoneModule(TestNiosModule): diff --git a/tests/unit/modules/network/aruba/test_aruba_command.py b/tests/unit/modules/network/aruba/test_aruba_command.py index 8084459420..1da5e19c3d 100644 --- a/tests/unit/modules/network/aruba/test_aruba_command.py +++ b/tests/unit/modules/network/aruba/test_aruba_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.aruba import aruba_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..aruba_module import TestArubaModule, load_fixture +from .aruba_module import TestArubaModule, load_fixture class TestArubaCommandModule(TestArubaModule): diff --git a/tests/unit/modules/network/aruba/test_aruba_config.py b/tests/unit/modules/network/aruba/test_aruba_config.py index 619c248312..55cf34f105 100644 --- a/tests/unit/modules/network/aruba/test_aruba_config.py +++ b/tests/unit/modules/network/aruba/test_aruba_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.aruba import aruba_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..aruba_module import TestArubaModule, load_fixture +from .aruba_module import TestArubaModule, load_fixture class TestArubaConfigModule(TestArubaModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_banner.py b/tests/unit/modules/network/cnos/test_cnos_banner.py index ac44b39980..e2f845df2f 100644 --- a/tests/unit/modules/network/cnos/test_cnos_banner.py +++ b/tests/unit/modules/network/cnos/test_cnos_banner.py @@ -20,7 +20,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_banner from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosBannerModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_bgp.py b/tests/unit/modules/network/cnos/test_cnos_bgp.py index 7f4be77789..edc3c49692 100644 --- a/tests/unit/modules/network/cnos/test_cnos_bgp.py +++ b/tests/unit/modules/network/cnos/test_cnos_bgp.py @@ -4,7 +4,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_bgp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosBgpModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_command.py b/tests/unit/modules/network/cnos/test_cnos_command.py index b61477761f..fda27bcc6e 100644 --- a/tests/unit/modules/network/cnos/test_cnos_command.py +++ b/tests/unit/modules/network/cnos/test_cnos_command.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosCommandModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_config.py b/tests/unit/modules/network/cnos/test_cnos_config.py index 0368ce3a59..220e0e5d26 100644 --- a/tests/unit/modules/network/cnos/test_cnos_config.py +++ b/tests/unit/modules/network/cnos/test_cnos_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_config -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/cnos/test_cnos_facts.py b/tests/unit/modules/network/cnos/test_cnos_facts.py index 19d58996a8..67dab9929f 100644 --- a/tests/unit/modules/network/cnos/test_cnos_facts.py +++ b/tests/unit/modules/network/cnos/test_cnos_facts.py @@ -22,7 +22,7 @@ __metaclass__ = type import json from ansible_collections.community.general.tests.unit.compat.mock import patch -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture from ansible_collections.community.general.plugins.modules.network.cnos import cnos_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/cnos/test_cnos_interface.py b/tests/unit/modules/network/cnos/test_cnos_interface.py index 76b16ded30..3248c0ed0c 100644 --- a/tests/unit/modules/network/cnos/test_cnos_interface.py +++ b/tests/unit/modules/network/cnos/test_cnos_interface.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosInterfaceModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_l2_interface.py b/tests/unit/modules/network/cnos/test_cnos_l2_interface.py index 9403b2ffe2..30130a4f97 100644 --- a/tests/unit/modules/network/cnos/test_cnos_l2_interface.py +++ b/tests/unit/modules/network/cnos/test_cnos_l2_interface.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_l2_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosL2InterfaceModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_l3_interface.py b/tests/unit/modules/network/cnos/test_cnos_l3_interface.py index d51e9306f1..ed86caa13d 100644 --- a/tests/unit/modules/network/cnos/test_cnos_l3_interface.py +++ b/tests/unit/modules/network/cnos/test_cnos_l3_interface.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_l3_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosL3InterfaceModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_linkagg.py b/tests/unit/modules/network/cnos/test_cnos_linkagg.py index 39b12b62af..b818408d8a 100644 --- a/tests/unit/modules/network/cnos/test_cnos_linkagg.py +++ b/tests/unit/modules/network/cnos/test_cnos_linkagg.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_linkagg from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosLinkaggModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_lldp.py b/tests/unit/modules/network/cnos/test_cnos_lldp.py index 842f3a75ae..25053c15f2 100644 --- a/tests/unit/modules/network/cnos/test_cnos_lldp.py +++ b/tests/unit/modules/network/cnos/test_cnos_lldp.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_lldp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosLldpModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_logging.py b/tests/unit/modules/network/cnos/test_cnos_logging.py index 41029a972d..06969d791f 100644 --- a/tests/unit/modules/network/cnos/test_cnos_logging.py +++ b/tests/unit/modules/network/cnos/test_cnos_logging.py @@ -24,7 +24,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_logging from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosLoggingModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_static_route.py b/tests/unit/modules/network/cnos/test_cnos_static_route.py index 1ea9ec7566..f32c6506f8 100644 --- a/tests/unit/modules/network/cnos/test_cnos_static_route.py +++ b/tests/unit/modules/network/cnos/test_cnos_static_route.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_static_route -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/cnos/test_cnos_system.py b/tests/unit/modules/network/cnos/test_cnos_system.py index 0f71285d07..f321c77767 100644 --- a/tests/unit/modules/network/cnos/test_cnos_system.py +++ b/tests/unit/modules/network/cnos/test_cnos_system.py @@ -24,7 +24,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_system from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosSystemModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_user.py b/tests/unit/modules/network/cnos/test_cnos_user.py index 47fb6c0f12..b278aae03a 100644 --- a/tests/unit/modules/network/cnos/test_cnos_user.py +++ b/tests/unit/modules/network/cnos/test_cnos_user.py @@ -20,7 +20,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_user from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosUserModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_vlag.py b/tests/unit/modules/network/cnos/test_cnos_vlag.py index 15e5bfc437..a80ae7ee34 100644 --- a/tests/unit/modules/network/cnos/test_cnos_vlag.py +++ b/tests/unit/modules/network/cnos/test_cnos_vlag.py @@ -4,7 +4,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_vlag from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosVlagModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_vlan.py b/tests/unit/modules/network/cnos/test_cnos_vlan.py index 4d7e6cc69f..35bc77a713 100644 --- a/tests/unit/modules/network/cnos/test_cnos_vlan.py +++ b/tests/unit/modules/network/cnos/test_cnos_vlan.py @@ -23,7 +23,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_vlan from ansible_collections.community.general.plugins.modules.network.cnos.cnos_vlan import parse_vlan_brief from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosVlanModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_vrf.py b/tests/unit/modules/network/cnos/test_cnos_vrf.py index 9bba92ff96..48944b9154 100644 --- a/tests/unit/modules/network/cnos/test_cnos_vrf.py +++ b/tests/unit/modules/network/cnos/test_cnos_vrf.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_vrf from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosVrfModule(TestCnosModule): diff --git a/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py b/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py index a3f89c74ce..2607558e1d 100644 --- a/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py +++ b/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.edgeswitch import edgeswitch_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..edgeswitch_module import TestEdgeswitchModule, load_fixture +from .edgeswitch_module import TestEdgeswitchModule, load_fixture class TestEdgeswitchFactsModule(TestEdgeswitchModule): diff --git a/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py b/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py index 5d78ff3cae..5dbe2848de 100644 --- a/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py +++ b/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py @@ -22,7 +22,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.edgeswitch import edgeswitch_vlan from ansible_collections.community.general.plugins.modules.network.edgeswitch.edgeswitch_vlan import parse_vlan_brief, parse_interfaces_switchport from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..edgeswitch_module import TestEdgeswitchModule, load_fixture +from .edgeswitch_module import TestEdgeswitchModule, load_fixture class TestEdgeswitchVlanModule(TestEdgeswitchModule): diff --git a/tests/unit/modules/network/icx/test_icx_banner.py b/tests/unit/modules/network/icx/test_icx_banner.py index 49ea4ddac0..1c59d0d2ea 100644 --- a/tests/unit/modules/network/icx/test_icx_banner.py +++ b/tests/unit/modules/network/icx/test_icx_banner.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_banner from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXBannerModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_command.py b/tests/unit/modules/network/icx/test_icx_command.py index 369ca5b187..c4179a86d2 100644 --- a/tests/unit/modules/network/icx/test_icx_command.py +++ b/tests/unit/modules/network/icx/test_icx_command.py @@ -7,7 +7,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXCommandModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_config.py b/tests/unit/modules/network/icx/test_icx_config.py index 84f87476e1..bbe0a1670b 100644 --- a/tests/unit/modules/network/icx/test_icx_config.py +++ b/tests/unit/modules/network/icx/test_icx_config.py @@ -7,7 +7,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, from ansible_collections.community.general.plugins.modules.network.icx import icx_config from ansible_collections.community.general.plugins.cliconf.icx import Cliconf from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXConfigModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_copy.py b/tests/unit/modules/network/icx/test_icx_copy.py index fca673f144..74c9459700 100644 --- a/tests/unit/modules/network/icx/test_icx_copy.py +++ b/tests/unit/modules/network/icx/test_icx_copy.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_copy from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXSCPModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_facts.py b/tests/unit/modules/network/icx/test_icx_facts.py index a62111b044..cbc937c540 100644 --- a/tests/unit/modules/network/icx/test_icx_facts.py +++ b/tests/unit/modules/network/icx/test_icx_facts.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXFactsModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_interface.py b/tests/unit/modules/network/icx/test_icx_interface.py index c48881b151..186e73a87d 100644 --- a/tests/unit/modules/network/icx/test_icx_interface.py +++ b/tests/unit/modules/network/icx/test_icx_interface.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXInterfaceModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_l3_interface.py b/tests/unit/modules/network/icx/test_icx_l3_interface.py index e08697950d..4ba7c0c788 100644 --- a/tests/unit/modules/network/icx/test_icx_l3_interface.py +++ b/tests/unit/modules/network/icx/test_icx_l3_interface.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_l3_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXFactsModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_linkagg.py b/tests/unit/modules/network/icx/test_icx_linkagg.py index b76d85a4e2..ded92b9ea8 100644 --- a/tests/unit/modules/network/icx/test_icx_linkagg.py +++ b/tests/unit/modules/network/icx/test_icx_linkagg.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_linkagg from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXLinkaggModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_lldp.py b/tests/unit/modules/network/icx/test_icx_lldp.py index 257b3f0496..840b614fc7 100644 --- a/tests/unit/modules/network/icx/test_icx_lldp.py +++ b/tests/unit/modules/network/icx/test_icx_lldp.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_lldp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXlldpModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_logging.py b/tests/unit/modules/network/icx/test_icx_logging.py index 5a551b8b35..5175db92f2 100644 --- a/tests/unit/modules/network/icx/test_icx_logging.py +++ b/tests/unit/modules/network/icx/test_icx_logging.py @@ -8,7 +8,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_logging from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXLoggingModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_ping.py b/tests/unit/modules/network/icx/test_icx_ping.py index 35422aee7b..0678acdca3 100644 --- a/tests/unit/modules/network/icx/test_icx_ping.py +++ b/tests/unit/modules/network/icx/test_icx_ping.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_ping from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXPingModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_static_route.py b/tests/unit/modules/network/icx/test_icx_static_route.py index aca84f9e35..f70e4a80f4 100644 --- a/tests/unit/modules/network/icx/test_icx_static_route.py +++ b/tests/unit/modules/network/icx/test_icx_static_route.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_static_route from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXStaticRouteModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_system.py b/tests/unit/modules/network/icx/test_icx_system.py index bfe8e6ee99..ebdc209cd6 100644 --- a/tests/unit/modules/network/icx/test_icx_system.py +++ b/tests/unit/modules/network/icx/test_icx_system.py @@ -8,7 +8,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_system from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXSystemModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_user.py b/tests/unit/modules/network/icx/test_icx_user.py index 3d7d809fbf..0281db384a 100644 --- a/tests/unit/modules/network/icx/test_icx_user.py +++ b/tests/unit/modules/network/icx/test_icx_user.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_user from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXSCPModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_vlan.py b/tests/unit/modules/network/icx/test_icx_vlan.py index e045f830e3..a2fd36f55d 100644 --- a/tests/unit/modules/network/icx/test_icx_vlan.py +++ b/tests/unit/modules/network/icx/test_icx_vlan.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_vlan from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXVlanModule(TestICXModule): diff --git a/tests/unit/modules/network/ingate/test_ig_config.py b/tests/unit/modules/network/ingate/test_ig_config.py index c34213d471..65c204db91 100644 --- a/tests/unit/modules/network/ingate/test_ig_config.py +++ b/tests/unit/modules/network/ingate/test_ig_config.py @@ -25,7 +25,7 @@ import os from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.ingate import ig_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..ingate_module import TestIngateModule, load_fixture +from .ingate_module import TestIngateModule, load_fixture class TestConfigModule(TestIngateModule): diff --git a/tests/unit/modules/network/ingate/test_ig_unit_information.py b/tests/unit/modules/network/ingate/test_ig_unit_information.py index dbc02d9315..cfa4438e51 100644 --- a/tests/unit/modules/network/ingate/test_ig_unit_information.py +++ b/tests/unit/modules/network/ingate/test_ig_unit_information.py @@ -11,7 +11,7 @@ import os from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.ingate import ig_unit_information from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..ingate_module import TestIngateModule, load_fixture +from .ingate_module import TestIngateModule, load_fixture class TestUnitInformationModule(TestIngateModule): diff --git a/tests/unit/modules/network/routeros/test_routeros_command.py b/tests/unit/modules/network/routeros/test_routeros_command.py index 7d49dfc9f7..af62f0c0f8 100644 --- a/tests/unit/modules/network/routeros/test_routeros_command.py +++ b/tests/unit/modules/network/routeros/test_routeros_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.routeros import routeros_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..routeros_module import TestRouterosModule, load_fixture +from .routeros_module import TestRouterosModule, load_fixture class TestRouterosCommandModule(TestRouterosModule): diff --git a/tests/unit/modules/network/routeros/test_routeros_facts.py b/tests/unit/modules/network/routeros/test_routeros_facts.py index 98d1ce5f28..72f99034af 100644 --- a/tests/unit/modules/network/routeros/test_routeros_facts.py +++ b/tests/unit/modules/network/routeros/test_routeros_facts.py @@ -20,7 +20,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.routeros import routeros_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..routeros_module import TestRouterosModule, load_fixture +from .routeros_module import TestRouterosModule, load_fixture class TestRouterosFactsModule(TestRouterosModule):