summaryrefslogtreecommitdiff
path: root/test/integration/targets/module_utils
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2020-06-22 19:05:30 -0700
committerGitHub <noreply@github.com>2020-06-22 19:05:30 -0700
commit4816bb4f43ee22f20fa7d75a79db659cc1cdeaf3 (patch)
tree4cf981e84fd5cb86174f8067d7178d731dece1c9 /test/integration/targets/module_utils
parent234994fc075222f28943313024c7df5d7010bc37 (diff)
downloadansible-4816bb4f43ee22f20fa7d75a79db659cc1cdeaf3.tar.gz
More boilerplate fixes. (#70224)
* Fix boilerplate in hacking dir. * Fix boilerplate in docs dir. * Fix boilerplate in integration tests. * Fix boilerplate in examples.
Diffstat (limited to 'test/integration/targets/module_utils')
-rw-r--r--test/integration/targets/module_utils/library/test.py2
-rw-r--r--test/integration/targets/module_utils/library/test_env_override.py3
-rw-r--r--test/integration/targets/module_utils/library/test_failure.py2
-rw-r--r--test/integration/targets/module_utils/library/test_override.py3
4 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/module_utils/library/test.py b/test/integration/targets/module_utils/library/test.py
index fbb7e6e224..fb6c8a81c3 100644
--- a/test/integration/targets/module_utils/library/test.py
+++ b/test/integration/targets/module_utils/library/test.py
@@ -2,6 +2,8 @@
# Most of these names are only available via PluginLoader so pylint doesn't
# know they exist
# pylint: disable=no-name-in-module
+__metaclass__ = type
+
results = {}
# Test import with no from
diff --git a/test/integration/targets/module_utils/library/test_env_override.py b/test/integration/targets/module_utils/library/test_env_override.py
index 94e3051bf2..ebfb5ddff0 100644
--- a/test/integration/targets/module_utils/library/test_env_override.py
+++ b/test/integration/targets/module_utils/library/test_env_override.py
@@ -2,6 +2,9 @@
# Most of these names are only available via PluginLoader so pylint doesn't
# know they exist
# pylint: disable=no-name-in-module
+from __future__ import absolute_import, division, print_function
+__metaclass__ = type
+
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.json_utils import data
from ansible.module_utils.mork import data as mork_data
diff --git a/test/integration/targets/module_utils/library/test_failure.py b/test/integration/targets/module_utils/library/test_failure.py
index e1a87c2e71..258217a74e 100644
--- a/test/integration/targets/module_utils/library/test_failure.py
+++ b/test/integration/targets/module_utils/library/test_failure.py
@@ -1,4 +1,6 @@
#!/usr/bin/python
+from __future__ import absolute_import, division, print_function
+__metaclass__ = type
results = {}
# Test that we are rooted correctly
diff --git a/test/integration/targets/module_utils/library/test_override.py b/test/integration/targets/module_utils/library/test_override.py
index 9ff54bf949..b4e21cdd18 100644
--- a/test/integration/targets/module_utils/library/test_override.py
+++ b/test/integration/targets/module_utils/library/test_override.py
@@ -1,4 +1,7 @@
#!/usr/bin/python
+from __future__ import absolute_import, division, print_function
+__metaclass__ = type
+
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.facts import data