Skip to content

Commit

Permalink
[6.16.z] Fix possible KeyError and remove debug statement (#16568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Oct 4, 2024
1 parent 7b60282 commit 121e083
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/foreman/cli/test_contentview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,9 +1295,10 @@ def test_negative_promote_default_cv(self, module_org, module_target_sat):
environment = module_target_sat.cli_factory.make_lifecycle_environment(
{'organization-id': module_org.id}
)
print("Hello, the org ID is currently", module_org.id)
result = module_target_sat.cli.ContentView.list({'organization-id': module_org.id})
content_view = random.choice([cv for cv in result if cv['name'] == constants.DEFAULT_CV])
content_view = random.choice(
[cv for cv in result if cv.get('name') == constants.DEFAULT_CV]
)
cvv = module_target_sat.cli.ContentView.version_list(
{'content-view-id': content_view['content-view-id']}
)[0]
Expand Down

0 comments on commit 121e083

Please sign in to comment.