Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed May 13, 2024
1 parent 7d053c7 commit f1c94b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/foreman/cli/test_contentview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1c94b7

Please sign in to comment.