Fix exception tests

This commit is contained in:
2024-06-08 15:53:50 +02:00
parent a90dbd0123
commit df1d08312f
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ def test_lookup(test_dig):
with pytest.raises(ValueError) as e:
test_dig.lookup("what are you talking about")
assert e.startswith("Wrong IP or CIDR format")
assert str(e.value).startswith("Wrong IP or CIDR format")
def test_response_plain_print(test_dig, capsys):