add; mactch and check keyword arguments test

This commit is contained in:
mahiro72 2025-12-14 03:46:08 +09:00
parent d5d257e86b
commit d6821ac525
1 changed files with 12 additions and 0 deletions

View File

@ -9,3 +9,15 @@ def test_ok():
def test_error():
with pytest.raises(UnicodeError):
pass
def test_match_only():
with pytest.raises(match="some error message"):
pass
def test_check_only():
with pytest.raises(check=lambda e: True):
pass
def test_match_and_check():
with pytest.raises(match="some error message", check=lambda e: True):
pass