python-telegram-bot/tests
Bibo-Joshi 613175b2c4
Allow updating ids/usernames of Filters.{user, chat} (#1757)
* Make Filters.user attrs mutable

* Add test_filters_user_empty_args

* Add test_filters_user_empty_args

* fix locks

* Make codecov happy

* Make user_ids and usernames sets

* Correct doc string

* Address review

* Review Vol. II

* Apply suggestions from code review

Co-authored-by: Noam Meltzer <tsnoam@gmail.com>

* Review Vol III.

* propery setter is now only a wrapper to a private method + more cleanups

pylint complained on some extra stuff, so cleaned them as well

* Review Vol. IV

* Review Vol. V

* Apply changes to Filters.chat

Co-authored-by: Noam Meltzer <tsnoam@gmail.com>
2020-05-10 12:15:11 +02: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 Add supegroup for each test bot (#1919) 2020-05-01 21:29:18 +03:00
conftest.py Add tzinfo kwarg to from_timestamp() (#1621) 2020-05-01 22:55:13 +02:00
plugin_github_group.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_animation.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_audio.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_bot.py Api 4.8 (#1917) 2020-05-02 11:56:52 +02:00
test_botcommand.py API 4.7 (#1858) 2020-04-10 19:22:45 +02: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 API 4.5 (#1508) 2020-03-28 16:37:26 +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 API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_chatmember.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_chatpermissions.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_chatphoto.py Stabilize CI (#1931) 2020-05-01 13:27:46 +02:00
test_choseninlineresult.py API 4.5 (#1508) 2020-03-28 16:37:26 +01: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 PrefixHandlers command and prefix editable (#1636) 2020-03-30 17:49:50 +02:00
test_constants.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_contact.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_conversationhandler.py Pass last valid context to TIMEOUT handlers (#1826) 2020-04-10 13:18:43 +02:00
test_defaults.py Add default values (#1490) 2020-02-06 11:22:56 +01:00
test_dice.py Api 4.8 (#1917) 2020-05-02 11:56:52 +02:00
test_dispatcher.py Use @abstractmethod instead of raising NotImplementedError (#1905) 2020-05-01 21:27:34 +03:00
test_document.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_encryptedcredentials.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_encryptedpassportelement.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_error.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_file.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_filters.py Allow updating ids/usernames of Filters.{user, chat} (#1757) 2020-05-10 12:15:11 +02:00
test_forcereply.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_game.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_gamehighscore.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_helpers.py Add tzinfo kwarg to from_timestamp() (#1621) 2020-05-01 22:55:13 +02:00
test_inlinekeyboardbutton.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_inlinekeyboardmarkup.py Add tests for empty string as switch_inline_query(_current_chat) (#1635) 2020-03-31 00:03:45 +02:00
test_inlinequery.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02: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 Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultaudio.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcachedaudio.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcacheddocument.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcachedgif.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcachedmpeg4gif.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcachedphoto.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcachedsticker.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcachedvideo.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcachedvoice.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultcontact.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultdocument.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultgame.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultgif.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultlocation.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultmpeg4gif.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultphoto.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultvenue.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultvideo.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_inlinequeryresultvoice.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +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 Stabilize CI (#1931) 2020-05-01 13:27:46 +02: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 Add JobQueue.run_monthly() (#1705) 2020-05-02 08:59:50 +02:00
test_keyboardbutton.py API 4.6 (#1723) 2020-03-29 09:52:30 +02:00
test_keyboardbuttonpolltype.py API 4.6 (#1723) 2020-03-29 09:52:30 +02:00
test_labeledprice.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_location.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_loginurl.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_message.py Api 4.8 (#1917) 2020-05-02 11:56:52 +02:00
test_messageentity.py API 4.6 (#1723) 2020-03-29 09:52:30 +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 Remove references to travis and appveyor (#1791) 2020-02-23 23:04:56 +02:00
test_meta.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_official.py Ignore Message.default_quote in test_official (#1848) 2020-03-28 14:32:16 +01: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 API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_passportelementerrordatafield.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrorfile.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrorfiles.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrorfrontside.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrorreverseside.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrorselfie.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrortranslationfile.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrortranslationfiles.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportelementerrorunspecified.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02:00
test_passportfile.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_persistence.py Use @abstractmethod instead of raising NotImplementedError (#1905) 2020-05-01 21:27:34 +03:00
test_photo.py Stabilize CI (#1931) 2020-05-01 13:27:46 +02:00
test_poll.py Api 4.8 (#1917) 2020-05-02 11:56:52 +02:00
test_pollanswerhandler.py API 4.6 (#1723) 2020-03-29 09:52:30 +02:00
test_pollhandler.py API 4.6 (#1723) 2020-03-29 09:52:30 +02:00
test_precheckoutquery.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02: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 API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_shippingquery.py Remove builtin names where possible (#1792) 2020-02-23 23:03:58 +02: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 Stabilize CI (#1931) 2020-05-01 13:27:46 +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 API 4.6 (#1723) 2020-03-29 09:52:30 +02:00
test_updater.py Use @abstractmethod instead of raising NotImplementedError (#1905) 2020-05-01 21:27:34 +03:00
test_user.py API 4.6 (#1723) 2020-03-29 09:52:30 +02:00
test_userprofilephotos.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_venue.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_video.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_videonote.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00
test_voice.py API 4.5 (#1508) 2020-03-28 16:37:26 +01:00