mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
fix test which was failing locally for some reason
This commit is contained in:
parent
4da7656659
commit
a54770947f
1 changed files with 3 additions and 3 deletions
|
@ -88,12 +88,12 @@ class TestInlineKeyboardMarkup:
|
|||
):
|
||||
if reply_markup is not None:
|
||||
if isinstance(reply_markup, ReplyMarkup):
|
||||
data['reply_markup'] = reply_markup.to_json()
|
||||
data['reply_markup'] = reply_markup.to_dict()
|
||||
else:
|
||||
data['reply_markup'] = reply_markup
|
||||
|
||||
assert bool('"switch_inline_query": ""' in data['reply_markup'])
|
||||
assert bool('"switch_inline_query_current_chat": ""' in data['reply_markup'])
|
||||
assert bool("'switch_inline_query': ''" in str(data['reply_markup']))
|
||||
assert bool("'switch_inline_query_current_chat': ''" in str(data['reply_markup']))
|
||||
|
||||
inline_keyboard_markup.inline_keyboard[0][0].callback_data = None
|
||||
inline_keyboard_markup.inline_keyboard[0][0].switch_inline_query = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue