python-telegram-bot/tests
Stɑrry Shivɑm 7e554584b1
Improve Timeouts in ConversationHandler (#2417)
* Handle promise states in conversation timeout

Signed-off-by: starry69 <starry369126@outlook.com>

* warn if nested conversation & timeout

Signed-off-by: starry69 <starry369126@outlook.com>

* Add notes and test for conversation_timeout

Signed-off-by: starry69 <starry369126@outlook.com>

* Try to fix pre-commit

Signed-off-by: starry69 <starry369126@outlook.com>

* Test promise exception

Signed-off-by: starry69 <starry369126@outlook.com>

* Welp

Signed-off-by: starry69 <starry369126@outlook.com>

* improve docs

Signed-off-by: starry69 <starry369126@outlook.com>

* typo

Signed-off-by: starry69 <starry369126@outlook.com>

* try to fix codecov

Signed-off-by: starry69 <starry369126@outlook.com>

* refactor timeout logic with promise.add_done_cb

Signed-off-by: starry69 <starry369126@outlook.com>

* small fix

Signed-off-by: starry69 <starry369126@outlook.com>

* Address review

Signed-off-by: starry69 <starry369126@outlook.com>

* Fix some type hinting

* Few fixes

Signed-off-by: starry69 <starry369126@outlook.com>

* fix tests

Signed-off-by: starry69 <starry369126@outlook.com>

* minor nitpick

Signed-off-by: starry69 <starry369126@outlook.com>

Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de>
2021-04-30 10:10:46 +02:00
..
data API 5.0 (#2181) 2020-11-29 16:20:46 +01:00
__init__.py Fix travis 2015-09-07 16:33:00 -03:00
bots.py Update Fallback Test-Bots (#2451) 2021-03-30 19:28:01 +02:00
conftest.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
plugin_github_group.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_animation.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_audio.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_bot.py Update ChatActions (#2460) 2021-04-22 08:57:56 +02:00
test_botcommand.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_callbackcontext.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_callbackquery.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_callbackqueryhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_chat.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_chatinvitelink.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
test_chatlocation.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_chatmember.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
test_chatmemberhandler.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
test_chatmemberupdated.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
test_chatpermissions.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_chatphoto.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_choseninlineresult.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_choseninlineresulthandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_commandhandler.py Improve Code Quality (#2450) 2021-04-05 13:25:27 +02:00
test_constants.py Make cryptography Dependency Optional & Refactor Some Tests (#2386) 2021-02-13 22:07:37 +01:00
test_contact.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_conversationhandler.py Improve Timeouts in ConversationHandler (#2417) 2021-04-30 10:10:46 +02:00
test_defaults.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_dice.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_dispatcher.py Add Two UserWarnings (#2464) 2021-04-16 19:02:43 +02:00
test_document.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_encryptedcredentials.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_encryptedpassportelement.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_error.py Improve Code Quality (#2450) 2021-04-05 13:25:27 +02:00
test_file.py Add pyupgrade to pre-commit Hooks (#2301) 2021-01-17 23:24:20 +01:00
test_filters.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_forcereply.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_game.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_gamehighscore.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_helpers.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_inlinekeyboardbutton.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinekeyboardmarkup.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequery.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_inlinequeryhandler.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_inlinequeryresultarticle.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultaudio.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcachedaudio.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcacheddocument.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcachedgif.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcachedmpeg4gif.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcachedphoto.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcachedsticker.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcachedvideo.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcachedvoice.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultcontact.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultdocument.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultgame.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultgif.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultlocation.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultmpeg4gif.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultphoto.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultvenue.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultvideo.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inlinequeryresultvoice.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inputcontactmessagecontent.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inputfile.py Add pyupgrade to pre-commit Hooks (#2301) 2021-01-17 23:24:20 +01:00
test_inputinvoicemessagecontent.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_inputlocationmessagecontent.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inputmedia.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_inputtextmessagecontent.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_inputvenuemessagecontent.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_invoice.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_jobqueue.py Adjust Calling of Dispatcher.update_persistence (#2285) 2021-01-07 21:31:00 +01:00
test_keyboardbutton.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_keyboardbuttonpolltype.py Update Copyright (#2289) 2021-01-04 17:24:14 +01:00
test_labeledprice.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_location.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_loginurl.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_message.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_messageautodeletetimerchanged.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
test_messageentity.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_messagehandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_messageid.py Add pyupgrade to pre-commit Hooks (#2301) 2021-01-17 23:24:20 +01:00
test_messagequeue.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_meta.py Make cryptography Dependency Optional & Refactor Some Tests (#2386) 2021-02-13 22:07:37 +01:00
test_no_passport.py Make cryptography Dependency Optional & Refactor Some Tests (#2386) 2021-02-13 22:07:37 +01:00
test_official.py Make cryptography Dependency Optional & Refactor Some Tests (#2386) 2021-02-13 22:07:37 +01:00
test_orderinfo.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_parsemode.py Add pyupgrade to pre-commit Hooks (#2301) 2021-01-17 23:24:20 +01:00
test_passport.py Add Missing telegram.SecureValue to init and Docs (#2398) 2021-02-19 17:46:52 +01:00
test_passportelementerrordatafield.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrorfile.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrorfiles.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrorfrontside.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrorreverseside.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrorselfie.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrortranslationfile.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrortranslationfiles.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportelementerrorunspecified.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_passportfile.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_persistence.py Improve Code Quality (#2450) 2021-04-05 13:25:27 +02:00
test_photo.py Stabilize Tests (#2409) 2021-03-10 16:51:56 +01:00
test_poll.py Add pyupgrade to pre-commit Hooks (#2301) 2021-01-17 23:24:20 +01:00
test_pollanswerhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_pollhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_precheckoutquery.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_precheckoutqueryhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_promise.py Improve Timeouts in ConversationHandler (#2417) 2021-04-30 10:10:46 +02:00
test_proximityalerttriggered.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_regexhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_replykeyboardmarkup.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_replykeyboardremove.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_request.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_shippingaddress.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_shippingoption.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_shippingquery.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_shippingqueryhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_sticker.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_stringcommandhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_stringregexhandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_successfulpayment.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_telegramobject.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_typehandler.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_update.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
test_updater.py Improve Updater.set_webhook (#2419) 2021-03-13 15:35:26 +01:00
test_user.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_userprofilephotos.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_utils.py python-telegram-bot-raw (#2324) 2021-01-30 14:15:39 +01:00
test_venue.py Update copyright headers 2021-01-03 10:40:24 +05:30
test_video.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_videonote.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_voice.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
test_voicechat.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
test_webhookinfo.py Add pyupgrade to pre-commit Hooks (#2301) 2021-01-17 23:24:20 +01:00