reformat tests

This commit is contained in:
2022-08-14 04:21:47 +03:00
parent ad90d3b02f
commit 68caa17527
3 changed files with 2 additions and 2 deletions

18
app/tests/bot/test_bot.py Normal file
View File

@@ -0,0 +1,18 @@
import pytest
from aiogram import Bot, types
from app.tests.conftest import FakeTelegram
from app.tests.data.factories import UserFactory
pytestmark = [
pytest.mark.asyncio,
]
async def test_parse_site(bot: Bot) -> None:
tg_user = UserFactory().as_dict()
user = types.User(**tg_user)
async with FakeTelegram(message_data=tg_user):
result = await bot.me
assert result == user