mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Surround top-level function and class definitions with two blank lines.
This commit is contained in:
committed by
Toshio Kuratomi
parent
9e310558ee
commit
b954917761
@@ -43,6 +43,7 @@ class AltACIModule(ACIModule):
|
||||
self.module = AltModule
|
||||
self.params = self.module.params
|
||||
|
||||
|
||||
aci = AltACIModule()
|
||||
|
||||
|
||||
|
||||
@@ -41,5 +41,6 @@ class TestNotKeyword(unittest.TestCase):
|
||||
def test_conditionals_w_not_keyword(self):
|
||||
assert c1(test_results) and c2(test_results) and c3(test_results)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -32,6 +32,7 @@ def set_module_args(args):
|
||||
|
||||
return _set_module_args(args)
|
||||
|
||||
|
||||
fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||
fixture_data = {}
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ def import_mock(name, *args):
|
||||
return mock_ncclient
|
||||
return builtin_import(name, *args)
|
||||
|
||||
|
||||
if PY3:
|
||||
with patch('builtins.__import__', side_effect=import_mock):
|
||||
from ansible.plugins.connection.netconf import Connection as NetconfConnection
|
||||
|
||||
@@ -43,6 +43,7 @@ def import_mock(name, *args):
|
||||
return mock_ncclient
|
||||
return builtin_import(name, *args)
|
||||
|
||||
|
||||
if PY3:
|
||||
with patch('builtins.__import__', side_effect=import_mock):
|
||||
from ansible.plugins.connection import netconf
|
||||
|
||||
Reference in New Issue
Block a user