Fixed subtypes and union types generation, new enums added

This commit is contained in:
Alex Root Junior 2023-07-11 23:30:31 +03:00
parent a7b92bb050
commit 2da32730ab
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
114 changed files with 673 additions and 359 deletions

View file

@ -1,5 +1,5 @@
from aiogram.methods import AnswerWebAppQuery, Request
from aiogram.types import InlineQueryResult, SentWebAppMessage
from aiogram.methods import AnswerWebAppQuery
from aiogram.types import InlineQueryResultPhoto, SentWebAppMessage
from tests.mocked_bot import MockedBot
@ -9,7 +9,11 @@ class TestAnswerWebAppQuery:
response: SentWebAppMessage = await bot.answer_web_app_query(
web_app_query_id="test",
result=InlineQueryResult(),
result=InlineQueryResultPhoto(
id="test",
photo_url="test",
thumbnail_url="test",
),
)
request = bot.get_request()
assert response == prepare_result.result