From 9d5032765f2d291a2866bb3e46fc5f59a3f4bab5 Mon Sep 17 00:00:00 2001 From: David Moore Date: Tue, 12 Dec 2023 10:00:47 -0500 Subject: [PATCH] Chain search result, returns None --- tests/foreman/ui/test_contenthost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/foreman/ui/test_contenthost.py b/tests/foreman/ui/test_contenthost.py index 788831f85df..4ab61729319 100644 --- a/tests/foreman/ui/test_contenthost.py +++ b/tests/foreman/ui/test_contenthost.py @@ -199,7 +199,8 @@ def test_positive_end_to_end( assert rhel_status in host_rhel_lcs['permission_denied'] assert rhel_status in host_status # Ensure content host is searchable - assert session.contenthost.search(vm.hostname)[0]['Name'] == vm.hostname + found_chost = session.contenthost.search(vm.hostname) + assert found_chost[0]['Name'] == vm.hostname chost = session.contenthost.read( vm.hostname, widget_names=['details', 'provisioning_details', 'subscriptions'] )