mosgortrans/app/tests/test_parse_web.py
2022-08-14 01:01:01 +03:00

18 lines
350 B
Python

import pytest
from aiogram import Bot, types
from app.tests.conftest import FakeTelegram
from app.tests.dataset import USER
pytestmark = [
pytest.mark.asyncio,
]
async def test_parse_site(bot: Bot) -> None:
user = types.User(**USER)
async with FakeTelegram(message_data=USER):
result = await bot.me
assert result == user