From 39ba6ffaaf4c2e82b2c0e82d989aad0873669dca Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Tue, 23 Jan 2024 11:37:45 +0100 Subject: [PATCH] fix in test_permission --- tests/foreman/api/test_permission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/api/test_permission.py b/tests/foreman/api/test_permission.py index 95929e79e36..a4267d71f92 100644 --- a/tests/foreman/api/test_permission.py +++ b/tests/foreman/api/test_permission.py @@ -374,7 +374,7 @@ def test_positive_check_update(self, entity_cls, class_org, class_location, targ self.give_user_permission(_permission_name(entity_cls, 'update'), target_sat) # update() calls read() under the hood, which triggers # permission error - if entity_cls is target_sat.api.ActivationKey: + if entity_cls is entities.ActivationKey: entity_cls(self.cfg, id=new_entity.id, name=name, organization=class_org).update_json( ['name'] )