Skip to content

Commit

Permalink
+1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Feb 4, 2024
1 parent 83f4139 commit 9be1278
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_proxy_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ def test_exception_message(addictional_string):
with pytest.raises(AssertionError, match='Regex pattern did not match.'):
with pytest.raises(ValueError, match=full_match('kek')):
raise ValueError(f'{addictional_string}kek{addictional_string}')


def test_exception_message_like_in_readme():
with pytest.raises(AssertionError, match='Regex pattern did not match.'):
with pytest.raises(ValueError, match=full_match('Some message.')): #
raise ValueError('XXSome message.XX')

0 comments on commit 9be1278

Please sign in to comment.