mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Improving test_pre_checkout_query
This commit is contained in:
parent
a6f83599c8
commit
b04a14072e
1 changed files with 6 additions and 1 deletions
|
|
@ -12,7 +12,12 @@ class TestPreCheckoutQuery:
|
|||
invoice_payload="payload",
|
||||
)
|
||||
|
||||
api_method = pre_checkout_query.answer(True)
|
||||
kwargs = dict(ok=True, error_message="foo")
|
||||
|
||||
api_method = pre_checkout_query.answer(**kwargs)
|
||||
|
||||
assert isinstance(api_method, AnswerPreCheckoutQuery)
|
||||
assert api_method.pre_checkout_query_id == pre_checkout_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