From 424c4dfb3cdf458613755d5b7e35ed7cd7c282a1 Mon Sep 17 00:00:00 2001 From: Cole Higgins Date: Tue, 13 Feb 2024 15:46:05 -0500 Subject: [PATCH] Updating Assertion for test fix --- 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 bf66b8311f3..f778eaa802b 100644 --- a/tests/foreman/cli/test_reporttemplates.py +++ b/tests/foreman/cli/test_reporttemplates.py @@ -1022,7 +1022,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])