mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
18 lines
350 B
Python
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
|