mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
add tests for Markdown tools
This commit is contained in:
parent
b3bb5f55fc
commit
1f997efc62
1 changed files with 18 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ from aiogram.utils.markdown import (
|
|||
strikethrough,
|
||||
text,
|
||||
underline,
|
||||
blockquote,
|
||||
hblockquote,
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -54,6 +56,22 @@ class TestMarkdown:
|
|||
None,
|
||||
'<a href="https://aiogram.dev">​</a>',
|
||||
],
|
||||
[blockquote, ("spam", "eggs"), " ", ">spam eggs"],
|
||||
pytest.param(
|
||||
blockquote,
|
||||
("spam", "eggs"),
|
||||
"\n",
|
||||
">spam\n>eggs",
|
||||
id="Markdown V2 blockquote multiline",
|
||||
),
|
||||
[hblockquote, ("spam", "eggs"), " ", "<blockquote>spam eggs</blockquote>"],
|
||||
pytest.param(
|
||||
hblockquote,
|
||||
("spam", "eggs"),
|
||||
"\n",
|
||||
"<blockquote>spam\neggs</blockquote>",
|
||||
id="HTML blockquote multiline",
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_formatter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue