python-telegram-bot/tests
ikkemaniac e60318166e
Add test for clean argument of Updater.start_polling/webhook (#2002)
* added test for 'clean' argument passed to 'start_polling()'

* remove TODO

* prettify

* remove bool from func name

* improve name-ing of fake update func

* cleanup class and nameing

* replace while for for

* swap valueerror for runtimeerror

* remove all other code to reduce testing

* add comments

* don't raise error, complete cycle and assert

* remove inf loop protection

* Revert "remove all other code to reduce testing"

This reverts commit 4566a1debd.

* remove error parametrization

* remove comment

* remove pass from class

* rename update_id to offset as the original get_updates() takes argument offset (which is the update_id)

* rename test func to match original func

* fix comment

* shorten for loop

* mock get_updates() behavior when 'offset' is passed. Assert with get_updates()

* remove other functions to reduce testing

* replicate original get_updates()

* move fakeupdate class and list creation outside get_updates and store in var

* loop from 0 to make update_id consistant w array key, just easier to debug

* update comments

* Revert "remove other functions to reduce testing"

This reverts commit 1fb498a6cc.

* fix typo

* Revert "fix typo"

This reverts commit ade9fec609.

* Revert "Revert "remove other functions to reduce testing""

This reverts commit 734de1371c.

* Revert "update comments"

This reverts commit f3a032e75e.

* Revert "loop from 0 to make update_id consistant w array key, just easier to debug"

This reverts commit 0c6881d8a1.

* Revert "move fakeupdate class and list creation outside get_updates and store in var"

This reverts commit 71de999300.

* Revert "replicate original get_updates()"

This reverts commit 5d0710ac3a.

* Revert "remove other functions to reduce testing"

This reverts commit 1fb498a6cc.

* Revert "mock get_updates() behavior when 'offset' is passed. Assert with get_updates()"

This reverts commit 8c727ba1e8.

* loop from 0 to make update_id consistant w array key, for consitency

Co-authored-by: ikkemaniac <ikkemaniac@localhost>
2020-06-24 00:25:58 +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 Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
plugin_github_group.py Update copyright date to 2020 (#1746) 2020-02-02 23:08:54 +02:00
test_animation.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_audio.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_bot.py Stabilize CI (#2000) 2020-06-15 18:45:38 +02:00
test_botcommand.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_callbackcontext.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_callbackquery.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_callbackqueryhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_chat.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_chatmember.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_chatpermissions.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_chatphoto.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_choseninlineresult.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_choseninlineresulthandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_commandhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_constants.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_contact.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_conversationhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_defaults.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_dice.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_dispatcher.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_document.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_encryptedcredentials.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_encryptedpassportelement.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_error.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_file.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_filters.py API 4.9 (#1980) 2020-06-22 20:09:52 +02:00
test_forcereply.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_game.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_gamehighscore.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_helpers.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinekeyboardbutton.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinekeyboardmarkup.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequery.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultarticle.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultaudio.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcachedaudio.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcacheddocument.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcachedgif.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcachedmpeg4gif.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcachedphoto.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcachedsticker.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcachedvideo.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcachedvoice.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultcontact.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultdocument.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultgame.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultgif.py API 4.9 (#1980) 2020-06-22 20:09:52 +02:00
test_inlinequeryresultlocation.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultmpeg4gif.py API 4.9 (#1980) 2020-06-22 20:09:52 +02:00
test_inlinequeryresultphoto.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultvenue.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultvideo.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inlinequeryresultvoice.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inputcontactmessagecontent.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inputfile.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inputlocationmessagecontent.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inputmedia.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inputtextmessagecontent.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_inputvenuemessagecontent.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_invoice.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_jobqueue.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_keyboardbutton.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_keyboardbuttonpolltype.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_labeledprice.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_location.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_loginurl.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_message.py API 4.9 (#1980) 2020-06-22 20:09:52 +02:00
test_messageentity.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_messagehandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_messagequeue.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +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 Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_parsemode.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passport.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrordatafield.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrorfile.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrorfiles.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrorfrontside.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrorreverseside.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrorselfie.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrortranslationfile.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrortranslationfiles.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportelementerrorunspecified.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_passportfile.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_persistence.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_photo.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_poll.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_pollanswerhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_pollhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_precheckoutquery.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_precheckoutqueryhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_regexhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_replykeyboardmarkup.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_replykeyboardremove.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +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 Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_shippingoption.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_shippingquery.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_shippingqueryhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_sticker.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_stringcommandhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_stringregexhandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_successfulpayment.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_telegramobject.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_typehandler.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_update.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_updater.py Add test for clean argument of Updater.start_polling/webhook (#2002) 2020-06-24 00:25:58 +02:00
test_user.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_userprofilephotos.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_venue.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_video.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_videonote.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00
test_voice.py Remove Python 2 Support (#1715) 2020-06-15 18:20:51 +02:00