mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 06:45:39 +00:00
Fix HTML unparsing when there's no entities
This commit is contained in:
@@ -137,3 +137,11 @@ def test_html_unparse_escaped_nested():
|
||||
pyrogram.types.MessageEntity(type=pyrogram.enums.MessageEntityType.UNDERLINE, offset=8, length=16)])
|
||||
|
||||
assert HTML.unparse(text=text, entities=entities) == expected
|
||||
|
||||
|
||||
def test_html_unparse_no_entities():
|
||||
expected = "text"
|
||||
text = "text"
|
||||
entities = []
|
||||
|
||||
assert HTML.unparse(text=text, entities=entities) == expected
|
||||
|
Reference in New Issue
Block a user