MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / post

Method post

tests/test_bot.py:683–687  ·  view source on GitHub ↗
(url, request_data: RequestData, *args, **kwargs)

Source from the content-addressed store, hash-verified

681
682 async def test_unknown_kwargs(self, offline_bot, monkeypatch):
683 async def post(url, request_data: RequestData, *args, **kwargs):
684 data = request_data.json_parameters
685 if not all([data["unknown_kwarg_1"] == "7", data["unknown_kwarg_2"] == "5"]):
686 pytest.fail("got wrong parameters")
687 return True
688
689 monkeypatch.setattr(offline_bot.request, "post", post)
690 await offline_bot.send_message(

Calls 13

ReplyParametersClass · 0.90
MessageEntityClass · 0.90
UpdateClass · 0.90
PollClass · 0.90
PollOptionClass · 0.90
MessageClass · 0.90
CallbackQueryClass · 0.90
UserClass · 0.90
ChatClass · 0.90
get_dummy_objectFunction · 0.85
to_jsonMethod · 0.80
to_dictMethod · 0.45

Tested by

no test coverage detected