Remove deprecated code

This commit is contained in:
Alex Root Junior 2022-09-28 00:20:42 +03:00
parent 23b6461249
commit 6fbc1bcfde
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
2 changed files with 0 additions and 15 deletions

View file

@ -1,13 +1,7 @@
from aiogram.types import MessageEntity
from tests.deprecated import check_deprecated
class TestMessageEntity:
def test_extract_from(self):
entity = MessageEntity(type="hashtag", length=4, offset=5)
assert entity.extract_from("#foo #bar #baz") == "#bar"
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"