1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-07-12 11:59:58 +02:00

🚧 dinglehopper: Guarantee NFC + rename from_text → from_str

This commit is contained in:
Gerber, Mike 2020-10-08 11:25:01 +02:00
parent 7843824eaf
commit a17ee2afec
5 changed files with 29 additions and 13 deletions

View file

@ -20,7 +20,7 @@ def test_text():
def test_normalization_check():
with pytest.raises(ValueError, match=r'.*is not normalized.*'):
with pytest.raises(ValueError, match=r'.*is not in NFC.*'):
ExtractedText('foo', None, None, unicodedata.normalize('NFD', 'Schlyñ'))
assert ExtractedText('foo', None, None, unicodedata.normalize('NFC', 'Schlyñ'))