mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Change methods not using its bound instance to staticmethods
This commit is contained in:
parent
deab57c6dc
commit
25701aac4f
11 changed files with 40 additions and 20 deletions
|
|
@ -4,10 +4,12 @@ from aiogram.utils import markdown
|
|||
|
||||
|
||||
class TestMarkdownEscape:
|
||||
def test_equality_sign_is_escaped(self):
|
||||
@staticmethod
|
||||
def test_equality_sign_is_escaped():
|
||||
if markdown.escape_md(r"e = mc2") != r"e \= mc2":
|
||||
raise AssertionError
|
||||
|
||||
def test_pre_escaped(self):
|
||||
@staticmethod
|
||||
def test_pre_escaped():
|
||||
if markdown.escape_md(r"hello\.") != r"hello\\\.":
|
||||
raise AssertionError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue