Implement new middlewares

This commit is contained in:
Alex Root Junior 2020-05-26 00:23:35 +03:00
parent c262cc0ce6
commit 7f26ec9935
29 changed files with 532 additions and 1252 deletions

View file

@ -11,7 +11,13 @@ class TestInlineQuery:
offset="",
)
kwargs = dict(results=[], cache_time=123, next_offset="123", switch_pm_text="foo", switch_pm_parameter="foo")
kwargs = dict(
results=[],
cache_time=123,
next_offset="123",
switch_pm_text="foo",
switch_pm_parameter="foo",
)
api_method = inline_query.answer(**kwargs)

View file

@ -1,5 +1,5 @@
from aiogram.api.methods import AnswerShippingQuery
from aiogram.api.types import ShippingAddress, ShippingQuery, User, ShippingOption, LabeledPrice
from aiogram.api.types import LabeledPrice, ShippingAddress, ShippingOption, ShippingQuery, User
class TestInlineQuery:
@ -19,7 +19,8 @@ class TestInlineQuery:
)
shipping_options = [
ShippingOption(id="id", title="foo", prices=[LabeledPrice(label="foo", amount=123)])]
ShippingOption(id="id", title="foo", prices=[LabeledPrice(label="foo", amount=123)])
]
kwargs = dict(ok=True, shipping_options=shipping_options, error_message="foo")