From a928ca2a4aeef4bb1c23e9bddc7913be60451728 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:50:27 -0500 Subject: [PATCH] [6.14.z] [Test Fix] test_negative_generate_hostpkgcompare_nonexistent_host (#14078) [Test Fix] test_negative_generate_hostpkgcompare_nonexistent_host (#14068) Updating Assertion for test fix (cherry picked from commit 51ad778640dbc34487eb447f7386478e583d2456) Co-authored-by: Cole Higgins --- tests/foreman/cli/test_reporttemplates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/cli/test_reporttemplates.py b/tests/foreman/cli/test_reporttemplates.py index 01b471d43fd..d3b12f75161 100644 --- a/tests/foreman/cli/test_reporttemplates.py +++ b/tests/foreman/cli/test_reporttemplates.py @@ -985,7 +985,7 @@ def test_negative_generate_hostpkgcompare_nonexistent_host(module_target_sat): 'inputs': 'Host 1 = nonexistent1, ' 'Host 2 = nonexistent2', } ) - assert "At least one of the hosts couldn't be found" in cm.exception.stderr + assert "At least one of the hosts couldn't be found" in cm.value.stderr @pytest.mark.rhel_ver_list([7, 8, 9])