From ee3f5784c053687c81f61adcfe16bd0f84d94cf7 Mon Sep 17 00:00:00 2001 From: Ladislav Vasina Date: Tue, 13 Feb 2024 09:52:37 +0100 Subject: [PATCH] Fix comments --- tests/foreman/ui/test_host.py | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/tests/foreman/ui/test_host.py b/tests/foreman/ui/test_host.py index 1ccf4ef1c0c..2b964244095 100644 --- a/tests/foreman/ui/test_host.py +++ b/tests/foreman/ui/test_host.py @@ -2415,19 +2415,21 @@ def change_content_source_prep( module_location, ): """ - This fixture sets up all necessary stuff for tests excercising the Change of the hosts's content source. - - It creates a new product in the organization, - creates a new repository in the product, - enables the specified repositories, - creates a new lce, - creates a new CV in the organization, adds the repository to the CV, publishes the CV, and promotes the published version to the lifecycle environment, - creates a new activation key for the CV in the lce, - registers the RHEL content host with the activation key, - updates the capsule's taxonomies - adds the lifecycle environment to the capsule's content. - - Fixture returns module_target_sat, org, lce, capsule, content_view, loc, ak + This fixture sets up all the necessary entities for tests + exercising the Change of the hosts's content source. + + It creates a new product in the organization, + creates a new repository in the product, + enables the specified repositories, + creates a new lce, + creates a new CV in the organization, adds the repository to the CV, + publishes the CV, and promotes the published version to the lifecycle environment, + creates a new activation key for the CV in the lce, + registers the RHEL content host with the activation key, + updates the capsule's taxonomies + adds the lifecycle environment to the capsule's content. + + Fixture returns module_target_sat, org, lce, capsule, content_view, loc, ak """ product_name, lce_name = (gen_string('alpha') for _ in range(2)) repos_to_enable = ['rhae2.9_el8'] @@ -2502,7 +2504,8 @@ def test_change_content_source(session, change_content_source_prep, rhel_content :id: 5add68c3-16b1-496d-9b24-f5388013351d - :expectedresults: Job invocation page should be correctly generated by the change content source action, generated script should also be correct + :expectedresults: Job invocation page should be correctly generated + by the change content source action, generated script should also be correct :CaseComponent:Hosts-Content @@ -2551,7 +2554,7 @@ def test_change_content_source(session, change_content_source_prep, rhel_content content_view=rhel_contenthost_pre_values['content_view']['name'], run_job_invocation=True, ) - + # Getting the data from the prefilled job invocation form selected_category_and_template = session.jobinvocation.get_job_category_and_template() selected_targeted_hosts = session.jobinvocation.get_targeted_hosts()