Skip to content

Commit 0354fe3

Browse files
[Enabler][test_zos_job_output_func] Update test suites on functional/modules/test_zos_job_output_func.py to be pylint correct (#1460)
* 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_output_func.py to be pylint correct * Update test_zos_job_output_func.py --------- Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
1 parent 54d5eba commit 0354fe3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/functional/modules/test_zos_job_output_func.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,13 @@ def test_zos_job_output_job_exists(ansible_zos_module):
9595
hosts = ansible_zos_module
9696
hosts.all.file(path=TEMP_PATH, state="directory")
9797
hosts.all.shell(
98-
cmd="echo {0} > {1}/SAMPLE".format(quote(JCL_FILE_CONTENTS), TEMP_PATH)
98+
cmd=f"echo {quote(JCL_FILE_CONTENTS)} > {TEMP_PATH}/SAMPLE"
9999
)
100100

101101
jobs = hosts.all.zos_job_submit(
102-
src="{0}/SAMPLE".format(TEMP_PATH), location="uss", volume=None
102+
src=f"{TEMP_PATH}/SAMPLE", location="uss", volume=None
103103
)
104104
for job in jobs.contacted.values():
105-
print(job)
106105
assert job.get("jobs") is not None
107106

108107
for job in jobs.contacted.values():
@@ -124,10 +123,10 @@ def test_zos_job_output_job_exists_with_filtered_ddname(ansible_zos_module):
124123
hosts = ansible_zos_module
125124
hosts.all.file(path=TEMP_PATH, state="directory")
126125
hosts.all.shell(
127-
cmd="echo {0} > {1}/SAMPLE".format(quote(JCL_FILE_CONTENTS), TEMP_PATH)
126+
cmd=f"echo {quote(JCL_FILE_CONTENTS)} > {TEMP_PATH}/SAMPLE"
128127
)
129128
result = hosts.all.zos_job_submit(
130-
src="{0}/SAMPLE".format(TEMP_PATH), location="uss", volume=None
129+
src=f"{TEMP_PATH}/SAMPLE", location="uss", volume=None
131130
)
132131
hosts.all.file(path=TEMP_PATH, state="absent")
133132
dd_name = "JESMSGLG"

0 commit comments

Comments
 (0)