python-telegram-bot/tests
Marco Fincato a0cd6e8fef
Add Filters.caption_regex (#2163)
* Check caption in Filters.regex

Added regex matching for message caption in Filters.regex.

* Moved caption check to Filters.caption_regex

* Added caption_regex tests

The same as for regex, with only the content of the message changed, that is now inside caption.

* Fixed pre-commit tests

Lines too long and an additional blank line

* Moved line break to comply

* Reformatted code with black

* Added docstrings
2020-11-04 20:54:24 +01:00
..
data API 4.7 (#1858) 2020-04-10 19:22:45 +02:00
__init__.py Fix travis 2015-09-07 16:33:00 -03:00
bots.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
conftest.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
plugin_github_group.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_animation.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_audio.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_bot.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_botcommand.py Extend rich comparison of objects (#1724) 2020-10-07 20:30:41 +02:00
test_callbackcontext.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_callbackquery.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_callbackqueryhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_chat.py Add Convenience Properties for Service Chats and Anonymous Admins (#2147) 2020-10-18 16:15:56 +02:00
test_chatmember.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_chatpermissions.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_chatphoto.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_choseninlineresult.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_choseninlineresulthandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_commandhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_constants.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_contact.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_conversationhandler.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
test_defaults.py Defaults.tzinfo (#2042) 2020-10-07 20:30:41 +02:00
test_dice.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_dispatcher.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
test_document.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_encryptedcredentials.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_encryptedpassportelement.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_error.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_file.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_filters.py Add Filters.caption_regex (#2163) 2020-11-04 20:54:24 +01:00
test_forcereply.py Extend rich comparison of objects (#1724) 2020-10-07 20:30:41 +02:00
test_game.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_gamehighscore.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_helpers.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinekeyboardbutton.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinekeyboardmarkup.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequery.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultarticle.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultaudio.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcachedaudio.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcacheddocument.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcachedgif.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcachedmpeg4gif.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcachedphoto.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcachedsticker.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcachedvideo.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcachedvoice.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultcontact.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultdocument.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultgame.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultgif.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultlocation.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultmpeg4gif.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultphoto.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultvenue.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultvideo.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inlinequeryresultvoice.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inputcontactmessagecontent.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inputfile.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inputlocationmessagecontent.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inputmedia.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inputtextmessagecontent.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_inputvenuemessagecontent.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_invoice.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_jobqueue.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
test_keyboardbutton.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_keyboardbuttonpolltype.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_labeledprice.py Extend rich comparison of objects (#1724) 2020-10-07 20:30:41 +02:00
test_location.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_loginurl.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_message.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_messageentity.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_messagehandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_messagequeue.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_meta.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_official.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_orderinfo.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_parsemode.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passport.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrordatafield.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrorfile.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrorfiles.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrorfrontside.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrorreverseside.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrorselfie.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrortranslationfile.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrortranslationfiles.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportelementerrorunspecified.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_passportfile.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_persistence.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
test_photo.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_poll.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_pollanswerhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_pollhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_precheckoutquery.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_precheckoutqueryhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_regexhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_replykeyboardmarkup.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_replykeyboardremove.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_request.py Fix Server response could not be decoded using UTF-8 (#1623) 2020-02-03 00:12:27 +02:00
test_shippingaddress.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_shippingoption.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_shippingquery.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_shippingqueryhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_sticker.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_stringcommandhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_stringregexhandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_successfulpayment.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_telegramobject.py Extend rich comparison of objects (#1724) 2020-10-07 20:30:41 +02:00
test_typehandler.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_update.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_updater.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
test_user.py Add Convenience Properties for Service Chats and Anonymous Admins (#2147) 2020-10-18 16:15:56 +02:00
test_userprofilephotos.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_venue.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_video.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_videonote.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_voice.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
test_webhookinfo.py Extend rich comparison of objects (#1724) 2020-10-07 20:30:41 +02:00