diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-10-28 20:34:11 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-10-28 20:34:11 +0000 |
commit | ef9875b11a33dbd25e92bc6b4cf692c18c9ba0ce (patch) | |
tree | 1f2fd4e4d9e585da35937b42fbda5f854af04728 /contrib/python/MarkupSafe/py3/tests/test_escape.py | |
parent | 37ae9cc90160b53eb0e22021c47b3996a01cd656 (diff) | |
parent | e3c8507a3d1cb090278f211232ddfde3bedc54d4 (diff) | |
download | ydb-ef9875b11a33dbd25e92bc6b4cf692c18c9ba0ce.tar.gz |
Merge branch 'rightlib' into mergelibs-241028-2033
Diffstat (limited to 'contrib/python/MarkupSafe/py3/tests/test_escape.py')
-rw-r--r-- | contrib/python/MarkupSafe/py3/tests/test_escape.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/python/MarkupSafe/py3/tests/test_escape.py b/contrib/python/MarkupSafe/py3/tests/test_escape.py index bf53facedd..03e0b64892 100644 --- a/contrib/python/MarkupSafe/py3/tests/test_escape.py +++ b/contrib/python/MarkupSafe/py3/tests/test_escape.py @@ -1,5 +1,8 @@ +from __future__ import annotations + import pytest +from markupsafe import escape from markupsafe import Markup @@ -18,12 +21,12 @@ from markupsafe import Markup ("こんにちは&><'\"", "こんにちは&><'""), # 4 byte ( - "\U0001F363\U0001F362&><'\"\U0001F37A xyz", - "\U0001F363\U0001F362&><'"\U0001F37A xyz", + "\U0001f363\U0001f362&><'\"\U0001f37a xyz", + "\U0001f363\U0001f362&><'"\U0001f37a xyz", ), - ("&><'\"\U0001F37A xyz", "&><'"\U0001F37A xyz"), - ("\U0001F363\U0001F362&><'\"", "\U0001F363\U0001F362&><'""), + ("&><'\"\U0001f37a xyz", "&><'"\U0001f37a xyz"), + ("\U0001f363\U0001f362&><'\"", "\U0001f363\U0001f362&><'""), ), ) -def test_escape(escape, value, expect): +def test_escape(value: str, expect: str) -> None: assert escape(value) == Markup(expect) |