mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Improving test_inline_query
This commit is contained in:
parent
66ecc6996d
commit
a6f83599c8
1 changed files with 6 additions and 1 deletions
|
|
@ -11,7 +11,12 @@ class TestInlineQuery:
|
||||||
offset="",
|
offset="",
|
||||||
)
|
)
|
||||||
|
|
||||||
api_method = inline_query.answer([])
|
kwargs = dict(results=[], cache_time=123, next_offset="123", switch_pm_text="foo", switch_pm_parameter="foo")
|
||||||
|
|
||||||
|
api_method = inline_query.answer(**kwargs)
|
||||||
|
|
||||||
assert isinstance(api_method, AnswerInlineQuery)
|
assert isinstance(api_method, AnswerInlineQuery)
|
||||||
assert api_method.inline_query_id == inline_query.id
|
assert api_method.inline_query_id == inline_query.id
|
||||||
|
|
||||||
|
for key, value in kwargs.items():
|
||||||
|
assert getattr(api_method, key) == value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue