summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGomathiselviS <gomathiselvi@gmail.com>2021-02-19 08:30:58 -0500
committerGitHub <noreply@github.com>2021-02-19 13:30:58 +0000
commit7a5b1d97c706e695257af464cd7cc207d2d9bd3b (patch)
tree32f2249e28d1fe669544495a364a0308a5f3baff
parent7f81392b306defda822bf8835cf59e207aad1af7 (diff)
downloadvyos-ansible-old-7a5b1d97c706e695257af464cd7cc207d2d9bd3b.tar.gz
vyos-ansible-old-7a5b1d97c706e695257af464cd7cc207d2d9bd3b.zip
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
-rw-r--r--changelogs/fragments/modify_resource_module_class_import.yaml3
-rw-r--r--tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py2
2 files changed, 4 insertions, 1 deletions
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 0000000..ba94846
--- /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 3250d11..cee1cfa 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()