We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7a844 commit 66e46f0Copy full SHA for 66e46f0
toolium/test/utils/ai_utils/test_text_readability.py
@@ -73,6 +73,7 @@ def test_assert_text_readability_with_custom_technical_chars():
73
input_text = 'Too many symbols: [ separators | hyphens - and such ] = {}'
74
with pytest.raises(Exception) as excinfo:
75
assert_text_readability(input_text, threshold=0.9)
76
+ assert str(excinfo.value).startswith('Text readability is below threshold')
77
assert_text_readability(input_text, threshold=0.9, technical_chars=['_']) # ignoring other technical chars
78
79
0 commit comments