From 89854d65ec9e9d2e8baabfcc9083664fc70e67bc Mon Sep 17 00:00:00 2001 From: shwsingh Date: Tue, 19 Mar 2024 13:52:33 +0530 Subject: [PATCH] Fix module_hostgroup fixture --- tests/foreman/api/test_discoveryrule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/foreman/api/test_discoveryrule.py b/tests/foreman/api/test_discoveryrule.py index 5e0666c9b2d..f5dffd5be14 100644 --- a/tests/foreman/api/test_discoveryrule.py +++ b/tests/foreman/api/test_discoveryrule.py @@ -21,6 +21,7 @@ @pytest.fixture(scope='module') def module_hostgroup(module_org, module_target_sat): module_hostgroup = module_target_sat.api.HostGroup(organization=[module_org]).create() + yield module_hostgroup module_hostgroup.delete()