From f1c94b72e775b82f1aadf327999aaed972c8bdad Mon Sep 17 00:00:00 2001 From: David Moore Date: Mon, 13 May 2024 09:51:52 -0400 Subject: [PATCH] fixup --- tests/foreman/cli/test_contentview.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/foreman/cli/test_contentview.py b/tests/foreman/cli/test_contentview.py index d33e0e650ef..b82453ca0a8 100644 --- a/tests/foreman/cli/test_contentview.py +++ b/tests/foreman/cli/test_contentview.py @@ -408,13 +408,11 @@ def test_negative_publish_during_repo_sync( } ) repo_task_id = repo_task.split()[-1].rstrip('.') - result = None # attempt to publish a new version of the content view with pytest.raises(CLIReturnCodeError) as err: - result = module_target_sat.cli.ContentView.publish({'id': content_view['id']}) + module_target_sat.cli.ContentView.publish({'id': content_view['id']}) assert 'Could not publish' in err.value.stderr assert repo_task_id in err.value.stderr - assert result is None # content-view-versions are unchanged content_view = module_target_sat.cli.ContentView.info({'id': content_view['id']}) assert content_view['versions'] == existing_versions