aiogram/tests/test_utils/test_markdown.py
Oleg A 25235e38f1
fix: recover tests
- applied pytest_async;
- fixed requirements;
- minor typos;
2022-09-18 10:17:08 +03:00

9 lines
264 B
Python

from aiogram.utils import markdown
class TestMarkdownEscape:
def test_equality_sign_is_escaped(self):
assert markdown.escape_md(r"e = mc2") == r"e \= mc2"
def test_pre_escaped(self):
assert markdown.escape_md(r"hello\.") == r"hello\\\."