From 7a5b1d97c706e695257af464cd7cc207d2d9bd3b Mon Sep 17 00:00:00 2001 From: GomathiselviS Date: Fri, 19 Feb 2021 08:30:58 -0500 Subject: modify import of resource module class in unit tests (#126) Modify import of resource module class in unit tests Reviewed-by: https://github.com/apps/ansible-zuul --- changelogs/fragments/modify_resource_module_class_import.yaml | 3 +++ tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/modify_resource_module_class_import.yaml diff --git a/changelogs/fragments/modify_resource_module_class_import.yaml b/changelogs/fragments/modify_resource_module_class_import.yaml new file mode 100644 index 00000000..ba948467 --- /dev/null +++ b/changelogs/fragments/modify_resource_module_class_import.yaml @@ -0,0 +1,3 @@ +--- +trivial: + - Modify import of resource_module class in unit tests. diff --git a/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py b/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py index 3250d116..cee1cfaa 100644 --- a/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py +++ b/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py @@ -35,7 +35,7 @@ class TestVyosOspfInterfacesModule(TestVyosModule): def setUp(self): super(TestVyosOspfInterfacesModule, self).setUp() self.mock_get_resource_connection_config = patch( - "ansible_collections.ansible.netcommon.plugins.module_utils.network.common.resource_module.get_resource_connection" + "ansible_collections.ansible.netcommon.plugins.module_utils.network.common.rm_base.resource_module_base.get_resource_connection" ) self.get_resource_connection_config = ( self.mock_get_resource_connection_config.start() -- cgit v1.2.3