diff --git a/tests/foreman/cli/test_classparameters.py b/tests/foreman/cli/test_classparameters.py index 433552737da..a4e75c1f76d 100644 --- a/tests/foreman/cli/test_classparameters.py +++ b/tests/foreman/cli/test_classparameters.py @@ -66,6 +66,7 @@ class TestSmartClassParameters: @pytest.mark.e2e def test_positive_list( self, + request, session_puppet_enabled_sat, module_puppet_org, module_puppet_loc, @@ -86,6 +87,7 @@ def test_positive_list( environment=module_puppet['env'].name, ).create() host.add_puppetclass(data={'puppetclass_id': module_puppet['class']['id']}) + request.addfinalizer(host.delete) hostgroup = session_puppet_enabled_sat.cli_factory.hostgroup( { 'puppet-environment-id': module_puppet['env'].id,