mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +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
@@ -39,4 +39,5 @@ def main():
|
||||
if 'trailing_junk' in fail_mode:
|
||||
print("trailing junk after module output")
|
||||
|
||||
|
||||
main()
|
||||
|
||||
@@ -46,4 +46,5 @@ def main():
|
||||
if 'trailing_junk' in fail_mode:
|
||||
print("trailing junk after module output")
|
||||
|
||||
|
||||
main()
|
||||
|
||||
@@ -536,5 +536,6 @@ def main():
|
||||
shutil.rmtree(TESTDIR)
|
||||
index += 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
@@ -69,6 +69,7 @@ def parse_args():
|
||||
gce_credentials.check_required(opts, parser)
|
||||
return (opts, args)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
(opts, args) = parse_args()
|
||||
|
||||
@@ -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