mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: recover tests (#1004)
- applied pytest_async; - fixed requirements; - minor typos;
This commit is contained in:
parent
96ebee26e4
commit
e065285857
11 changed files with 49 additions and 46 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue