mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Rename tests
This commit is contained in:
parent
0076a6f874
commit
4a99661b38
1 changed files with 2 additions and 2 deletions
|
|
@ -3,11 +3,11 @@ from tests.deprecated import check_deprecated
|
|||
|
||||
|
||||
class TestMessageEntity:
|
||||
def test_extract(self):
|
||||
def test_extract_from(self):
|
||||
entity = MessageEntity(type="hashtag", length=4, offset=5)
|
||||
assert entity.extract_from("#foo #bar #baz") == "#bar"
|
||||
|
||||
def test_get_text(self):
|
||||
def test_extract(self):
|
||||
entity = MessageEntity(type="hashtag", length=4, offset=5)
|
||||
with check_deprecated("3.0b5", exception=AttributeError):
|
||||
assert entity.extract("#foo #bar #baz") == "#bar"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue