1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix unit test failure for netconf connection plugin (#33547)

This commit is contained in:
Ganesh Nalawade 2017-12-05 12:04:48 +05:30 committed by GitHub
parent 8699f8cf26
commit 95044d69c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -23,8 +23,5 @@ f5-sdk ; python_version >= '2.7'
f5-icontrol-rest ; python_version >= '2.7'
deepdiff
# requirement for modules using Netconf protocol
ncclient
# requirement for aci_rest module
xmljson

View file

@ -63,7 +63,8 @@ class TestNetconfConnectionClass(unittest.TestCase):
self.assertIsNone(conn._manager)
self.assertFalse(conn._connected)
def test_netconf__connect(self):
@patch("ansible.plugins.connection.netconf.netconf_loader")
def test_netconf__connect(self, mock_netconf_loader):
pc = PlayContext()
new_stdin = StringIO()