Skip to content

Commit 148a35e

Browse files
[Enabler][test_zos_operator_func] Update test suites on functional/modules/test_zos_operator_func.py to be pylint correct (#1476)
* Update test suites on functional/module-utils/test_zos_data_set_func.py to be pylint correct * Correct functional/modules/test_zos_data_set_func.py * Correct functional/modules/test_zos_data_set_func.py * Update test suites on functional/modules/test_zos_job_submit_func.py to be pylint correct * Remove accidental changes on functional/modules/test_zos_job_submit_func.py * Update test suites on functional/modules/test_zos_operator_func.py to be pylint correct * Take out unused imports on functional/modules/test_zos_operator_func.py function to be pylint correct * Update test_zos_operator_func.py --------- Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
1 parent 5dd094a commit 148a35e

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/functional/modules/test_zos_operator_func.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@
1515

1616
__metaclass__ = type
1717

18-
import time
19-
20-
import ansible.constants
21-
import ansible.errors
22-
import ansible.utils
2318
import pytest
24-
from pprint import pprint
2519

2620
from ansible_collections.ibm.ibm_zos_core.plugins.module_utils import (
27-
zoau_version_checker
21+
zoau_version_checker,
2822
)
2923

3024

@@ -64,7 +58,7 @@ def test_zos_operator_invalid_command_to_ensure_transparency(ansible_zos_module)
6458
assert result.get("changed") is True
6559
transparency = False
6660
if any('DUMP COMMAND' in str for str in result.get("content")):
67-
transparency = True
61+
transparency = True
6862
assert transparency
6963

7064

@@ -140,11 +134,10 @@ def test_zos_operator_positive_verbose_blocking(ansible_zos_module):
140134
def test_response_come_back_complete(ansible_zos_module):
141135
hosts = ansible_zos_module
142136
results = hosts.all.zos_operator(cmd="\\$dspl")
143-
res = dict()
137+
res = {}
144138
res["stdout"] = []
145139
for result in results.contacted.values():
146140
stdout = result.get('content')
147141
# HASP646 Only appears in the last line that before did not appears
148142
last_line = len(stdout)
149143
assert "HASP646" in stdout[last_line - 1]
150-

0 commit comments

Comments
 (0)