Skip to content

Commit

Permalink
update unitest
Browse files Browse the repository at this point in the history
  • Loading branch information
ohachimOs committed Dec 2, 2024
1 parent f493f02 commit 7551e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/whois_ip_agent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def testWhoisIp_whenASNParseErrorOccure_logWithoutCrash(
mocker: plugin.MockerFixture,
agent_mock: List[message.Message],
caplog: pytest.LogCaptureFixture,
):
"""Test that ASNParseError is caught and handled gracefully."""
) -> None:
"""Test that ASNParseError is caught and logged."""
mocker.patch(
"ipwhois.IPWhois.lookup_rdap", side_effect=ipwhois.exceptions.ASNParseError
)
Expand Down

0 comments on commit 7551e7e

Please sign in to comment.