From 198093ca14fdcaa5325ea4345c43c7378758b26d Mon Sep 17 00:00:00 2001 From: Xiaoxue Wang Date: Wed, 18 Dec 2024 19:54:04 +0800 Subject: [PATCH] pytest error fix Signed-off-by: Xiaoxue Wang --- insights/tests/parsers/test_fwupdagent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/insights/tests/parsers/test_fwupdagent.py b/insights/tests/parsers/test_fwupdagent.py index 285fcc2f82..422a4ba7d4 100644 --- a/insights/tests/parsers/test_fwupdagent.py +++ b/insights/tests/parsers/test_fwupdagent.py @@ -2,7 +2,7 @@ import doctest import pytest -from insights.core.exceptions import ParseException, SkipComponent +from insights.core.exceptions import ParseException from insights.parsers import fwupdagent from insights.parsers.fwupdagent import FwupdagentDevices, FwupdagentSecurity from insights.tests import context_wrap @@ -178,7 +178,7 @@ def test_devices(): assert devices["Devices"][1]["Name"] == "USB3.0 Hub" assert devices["Devices"][1]["Version"] == "3.114" - with pytest.raises(SkipComponent): + with pytest.raises(ParseException): FwupdagentDevices(context_wrap(DEVICES_ERROR_1)) @@ -196,7 +196,7 @@ def test_security(): with pytest.raises(ParseException): FwupdagentSecurity(context_wrap(SECURITY_ERROR_2)) - with pytest.raises(SkipComponent): + with pytest.raises(ParseException): FwupdagentSecurity(context_wrap(SECURITY_ERROR_3))