The current test suite is not review by pylint and not follow up by pep8 rules.
To get a better result (6.26 current) by working with the recommendations of pylint command and remove all print and pprint statements.
Also could be tested to see results.
Commands to connect to EC:
And commands to see problemspylint [test_suite]
Run on test folder.
Commands for run test:
export ANSIBLE_ACTION_PLUGINS=~/.ansible/collections/ansible_collections/ibm/ibm_zos_core/plugins/action && export ANSIBLE_MODULE_UTILS=~/.ansible/collections/ansible_collections/ibm/ibm_zos_core/plugins/module_utils && export ANSIBLE_LIBRARY=~/.ansible/collections/ansible_collections/ibm/ibm_zos_core/plugins/modules
Command to run specific_test:
Run on test folder
python3 -m pytest -v -s -k "[test_name]" --host-pattern=all --zinventory=/Users/andre/Desktop/work_2024/ibm_zos_core/tests/test_config.yml functional/modules/[Test_suite]
Is there an existing issue for this?
Enabler description
The current test suite is not review by pylint and not follow up by pep8 rules. To get a better result (6.26 current) by working with the recommendations of
pylint
command and remove allprint
andpprint
statements. Also could be tested to see results. Commands to connect to EC:Create the collection: On dev branch on ibm_zos_core folder run:
Test suites:
And commands to see problems
pylint [test_suite]
Run on test folder. Commands for run test:export ANSIBLE_ACTION_PLUGINS=~/.ansible/collections/ansible_collections/ibm/ibm_zos_core/plugins/action && export ANSIBLE_MODULE_UTILS=~/.ansible/collections/ansible_collections/ibm/ibm_zos_core/plugins/module_utils && export ANSIBLE_LIBRARY=~/.ansible/collections/ansible_collections/ibm/ibm_zos_core/plugins/modules
Command to run specific_test: Run on test folderpython3 -m pytest -v -s -k "[test_name]" --host-pattern=all --zinventory=/Users/andre/Desktop/work_2024/ibm_zos_core/tests/test_config.yml functional/modules/[Test_suite]
test_config.yml
Ansible module
No response