Skip to content

Commit

Permalink
fix in test_permission
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk authored and ogajduse committed Jan 23, 2024
1 parent b588165 commit 39ba6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/foreman/api/test_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
)
Expand Down

0 comments on commit 39ba6ff

Please sign in to comment.