Skip to content

Commit

Permalink
pytest error fix
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxue Wang <[email protected]>
  • Loading branch information
JoySnow committed Dec 18, 2024
1 parent 175ad36 commit 198093c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions insights/tests/parsers/test_fwupdagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))


Expand All @@ -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))


Expand Down

0 comments on commit 198093c

Please sign in to comment.