From c6be9ede9ca5835c0ef524d3d991a4b18785c273 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:28:56 -0400 Subject: [PATCH] [6.16.z] RFE for 6.16 Coverage, small issue with splitting repo_task for id (#16140) --- tests/foreman/cli/test_contentview.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/foreman/cli/test_contentview.py b/tests/foreman/cli/test_contentview.py index 30735762e6e..4513cfa0338 100644 --- a/tests/foreman/cli/test_contentview.py +++ b/tests/foreman/cli/test_contentview.py @@ -403,12 +403,9 @@ def test_negative_publish_during_repo_sync( existing_versions = cv_info['versions'] # perform async repository sync repo_task = module_target_sat.cli.Repository.synchronize( - { - 'id': custom_repo['id'], - 'async': True, - } + {'id': custom_repo['id'], 'async': True} ) - repo_task_id = repo_task.split()[-1].rstrip('.') + repo_task_id = repo_task[0]['id'] # attempt to publish a new version of the content view with pytest.raises(CLIReturnCodeError) as err: module_target_sat.cli.ContentView.publish({'id': module_cv.id})