Change methods not using its bound instance to staticmethods

This commit is contained in:
deepsource-autofix[bot] 2020-11-08 21:54:06 +00:00 committed by GitHub
parent deab57c6dc
commit 25701aac4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 40 additions and 20 deletions

View file

@ -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