diff --git a/tests/foreman/cli/test_errata.py b/tests/foreman/cli/test_errata.py index c468bf16355..4af3d9be2d3 100644 --- a/tests/foreman/cli/test_errata.py +++ b/tests/foreman/cli/test_errata.py @@ -688,8 +688,8 @@ def test_positive_list_affected_chosts_by_erratum_restrict_flag( 'inclusion': 'false', } ) - request.addfinalizer(lambda: - cv_filter_cleanup( + request.addfinalizer( + lambda: cv_filter_cleanup( target_sat, cv_filter['filter-id'], module_cv, module_sca_manifest_org, module_lce ) ) @@ -856,8 +856,8 @@ def test_host_errata_search_commands( 'inclusion': 'false', } ) - request.addfinalizer(lambda: - cv_filter_cleanup( + request.addfinalizer( + lambda: cv_filter_cleanup( target_sat, cv_filter['filter-id'], module_cv, module_sca_manifest_org, module_lce ) ) diff --git a/tests/foreman/destructive/test_capsule_loadbalancer.py b/tests/foreman/destructive/test_capsule_loadbalancer.py index f448e36320f..3949d2bf71a 100644 --- a/tests/foreman/destructive/test_capsule_loadbalancer.py +++ b/tests/foreman/destructive/test_capsule_loadbalancer.py @@ -220,7 +220,9 @@ def test_loadbalancer_install_package( if loadbalancer_setup['setup_capsules']['capsule_1'].hostname in result.stdout else loadbalancer_setup['setup_capsules']['capsule_2'] ) - request.addfinalizer(registered_to_capsule.power_control(state=VmState.RUNNING, ensure=True)) + request.addfinalizer( + lambda: registered_to_capsule.power_control(state=VmState.RUNNING, ensure=True) + ) # Remove the packages from the client result = rhel7_contenthost.execute('yum remove -y tree')