mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
Simplify Internals of Bot
Methods (#3396)
This commit is contained in:
parent
637cc574ab
commit
4123e7aa57
2 changed files with 277 additions and 481 deletions
754
telegram/_bot.py
754
telegram/_bot.py
File diff suppressed because it is too large
Load diff
|
@ -1910,8 +1910,8 @@ class TestBot:
|
|||
self, bot, drop_pending_updates, monkeypatch
|
||||
):
|
||||
async def make_assertion(url, request_data: RequestData, *args, **kwargs):
|
||||
data = request_data.json_parameters
|
||||
return bool(data.get("drop_pending_updates")) == drop_pending_updates
|
||||
data = request_data.parameters
|
||||
return data.get("drop_pending_updates") == drop_pending_updates
|
||||
|
||||
monkeypatch.setattr(bot.request, "post", make_assertion)
|
||||
|
||||
|
|
Loading…
Reference in a new issue