fix: recover tests (#1004)

- applied pytest_async;
- fixed requirements;
- minor typos;
This commit is contained in:
Oleg A 2022-09-18 15:32:42 +03:00 committed by GitHub
parent 96ebee26e4
commit e065285857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 49 additions and 46 deletions

View file

@ -1,7 +1,7 @@
import pytest
from aiogram import Bot, types
from . import FakeTelegram, TOKEN, BOT_ID
from . import BOT_ID, FakeTelegram
pytestmark = pytest.mark.asyncio
@ -542,5 +542,4 @@ async def test_set_sticker_set_thumb(bot: Bot):
async def test_bot_id(bot: Bot):
""" Check getting id from token. """
bot = Bot(TOKEN)
assert bot.id == BOT_ID # BOT_ID is a correct id from TOKEN