Skip to content

Commit 4d9cc7a

Browse files
[Enabler][test_zos_volume_init_func] Update test suites on functional/modules/test_zos_volume_init_func.py to be pylint correct (#1479)
* 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_volume_init_func.py to be pylint correct * Update test_zos_volume_init_func.py --------- Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
1 parent d1afc17 commit 4d9cc7a

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

tests/functional/modules/test_zos_volume_init_func.py

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def test_guard_rail_and_setup(ansible_zos_module):
3838
hosts.all.zos_data_set(name="IMSTESTL.IMS01.SPOOL2", state="absent")
3939
hosts.all.zos_data_set(name="IMSTESTL.IMS01.SPOOL3", state="absent")
4040

41-
params = dict(
42-
address=TEST_VOL_ADDR,
43-
verify_offline=False,
44-
volid=TEST_VOL_SER,
45-
verify_volid='USER02'
46-
)
41+
params = {
42+
"address":TEST_VOL_ADDR,
43+
"verify_offline":False,
44+
"volid":TEST_VOL_SER,
45+
"verify_volid":'USER02'
46+
}
4747

4848
# take volume offline
4949
hosts.all.zos_operator(cmd=f"vary {TEST_VOL_ADDR},offline")
@@ -137,7 +137,9 @@ def test_volid_address_assigned_correctly(ansible_zos_module):
137137
# parameter is correctly assigned to the 'address' parameter.
138138

139139
# Display command to print device status, volser and addr should correspond
140-
display_cmd_output = list(hosts.all.zos_operator(cmd=f"D U,VOL={TEST_VOL_SER}").contacted.values())[0]
140+
display_cmd_output = list(
141+
hosts.all.zos_operator(cmd=f"D U,VOL={TEST_VOL_SER}").contacted.values()
142+
)[0]
141143

142144
# zos_operator output contains the command as well, only the last line of
143145
# the output is relevant for the needs of this test case.
@@ -260,7 +262,8 @@ def test_good_param_values(ansible_zos_module, params):
260262
'volid': TEST_VOL_SER,
261263
'vtoc_size': -10
262264
}, 12),
263-
# note - "'vtoc_size': 0" gets treated as vtoc_size wasn't defined and invokes default behavior.
265+
# note - "'vtoc_size': 0" gets treated as vtoc_size wasn't defined
266+
# and invokes default behavior.
264267
# volid check - incorrect existing volid
265268
({
266269
'address': TEST_VOL_ADDR,
@@ -362,11 +365,11 @@ def test_no_existing_data_sets_check(ansible_zos_module):
362365
def test_minimal_params(ansible_zos_module):
363366
hosts = ansible_zos_module
364367

365-
params = dict(
366-
address=TEST_VOL_ADDR,
367-
verify_offline=False,
368-
volid=TEST_VOL_SER
369-
)
368+
params = {
369+
"address":TEST_VOL_ADDR,
370+
"verify_offline":False,
371+
"volid":TEST_VOL_SER
372+
}
370373

371374
# take volume offline
372375
hosts.all.zos_operator(cmd=f"vary {TEST_VOL_ADDR},offline")

0 commit comments

Comments
 (0)