python-telegram-bot/tests
Bibo-Joshi 960c7a0c70
Add default values (#1490)
* added parse_mode parameter in Updater and in Bot class to set a default parse mode for bot

* DefaultValue

* Add default parse_mode everywhere

* Renome to default_parse_mode

* Test def parse_mode for send_*, edit_message_*

* Remove duplicate code in Input* classes

* Improve handling of def_p_m for Bot methods

* Remove unneeded deletion of kwargs

* Make @log preserve signature, add bots with defaults to tests

* Fix Codacy

* Fix Travis Error

* Add default_disable_notification

* Add default_disable_web_page_preview

* Add default_disable_timeout

* add default_disable_web_page_preview for InputTextMessageContent

* add default_quote

* Try fixing test_pin_and_unpin

* Just run 3.5 tests for paranoia

* add tests for Defaults

* Revert "Just run 3.5 tests for paranoia"

This reverts commit 1baa91a3a1.

* Tidy up parameters, move Defaults to ext

* Stage new files, because im an idiot

* remove debug prints

* change equality checks for DEFAULT_NONE

* Some last changes

* fix S&R error so that tests actually run

Co-authored-by: Ak4zh <agwl.akash@gmail.com>
Co-authored-by: Eldinnie <Eldinnie@users.noreply.github.com>
2020-02-06 11:22:56 +01:00
..
data Fix test_photo.py (#1479) 2019-08-24 01:10:30 +03:00
__init__.py Fix travis 2015-09-07 16:33:00 -03:00
bots.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
conftest.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
plugin_github_group.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_animation.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_audio.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_bot.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_callbackcontext.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_callbackquery.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_callbackqueryhandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_chat.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_chatmember.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_chatpermissions.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_choseninlineresult.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_choseninlineresulthandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_commandhandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_constants.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_contact.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_conversationhandler.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_defaults.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_dispatcher.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_document.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_encryptedcredentials.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_encryptedpassportelement.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_error.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_file.py fix download without path arguments (#1591) 2020-02-06 11:21:21 +01:00
test_filters.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_forcereply.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_game.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_gamehighscore.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_helpers.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinekeyboardbutton.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinekeyboardmarkup.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequery.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_inlinequeryhandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_inlinequeryresultarticle.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultaudio.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcachedaudio.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcacheddocument.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcachedgif.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcachedmpeg4gif.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcachedphoto.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcachedsticker.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcachedvideo.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcachedvoice.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultcontact.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultdocument.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultgame.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultgif.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultlocation.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultmpeg4gif.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultphoto.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultvenue.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultvideo.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinequeryresultvoice.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inputcontactmessagecontent.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inputfile.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inputlocationmessagecontent.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inputmedia.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_inputtextmessagecontent.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inputvenuemessagecontent.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_invoice.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_jobqueue.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_keyboardbutton.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_labeledprice.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_location.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_loginurl.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_message.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_messageentity.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_messagehandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_messagequeue.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_meta.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_official.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_orderinfo.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_parsemode.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passport.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_passportelementerrordatafield.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrorfile.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrorfiles.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrorfrontside.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrorreverseside.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrorselfie.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrortranslationfile.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrortranslationfiles.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportelementerrorunspecified.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_passportfile.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_persistence.py skip test_json on TestDictPersistence on py3.5 (#1748) 2020-02-03 00:10:48 +02:00
test_photo.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_poll.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_precheckoutquery.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_precheckoutqueryhandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_regexhandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_replykeyboardmarkup.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_replykeyboardremove.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +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 Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_shippingoption.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_shippingquery.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_shippingqueryhandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_sticker.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_stringcommandhandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_stringregexhandler.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_successfulpayment.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_telegramobject.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_typehandler.py bot_data as global memory (V12 version of #1322) (#1325) 2020-02-02 22:20:31 +01:00
test_update.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_updater.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_user.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_userprofilephotos.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_venue.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_video.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_videonote.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_voice.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
travis_fold.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00