python-telegram-bot/tests
Wesley Gahr 68e87db909 Job queue time units (#452)
* Adding timeunit and day support to the jobqueue

* Adding tests

* Changed the file permission back to 644.

* Changed AssertEqual argument order to (actual, expectd).

* Removed the TimeUnit enum and unit param, instead use datetime.time for interval.

* Removing the TimeUnits enum and unit param in favour of optionally using a datetime.time as the interval.

* Removing the TimeUnits enumeration, forgot the remove it in the last one.

* Removed some old docstrings refering to the TimeUnits enum.

* Removed the old TimeUnits import.

* Adding some error handling for the 'days' argument (only a 'tuple' with 'Days')

* Writing the error message directly in the exception.

* Moving a debug statement wrongfully saying a job would be running on days it wouldn't.

* Writing error messages directly in the exceptions instead of making an extra variable.

* Replacing datetime.time in favour of datetime.timedelta because of the get_seconds() method.

* Adding error handling for the method .

* Splitting the tests up in multiple ones, no float test because I haven't found a reliable way to test it.

* Excluding .exrc file.

* Removing \ at EOF of ValueError.

* Replacing Enums with plain new-style classes.

* Using numbers.number to check for ints/floats instead of seperate int/float checks.

* Fixing typo, number -> Number.

* Changed lower_case Days attributes to UPPER_CASE.

* Different formatting for Days class, removed the get_days function in favour of a tuple.

* Removed redundant function get_days.

* Edited the docstring for next_t to also take datetime.timedelta.

* Removed for-loop in favour of any().

* Changed docstring for interval.

* Removed debug print.

* Changing some docstrings.

* Changing some docstrings (again).
2016-11-08 23:39:25 +01:00
..
data Add tests for Game, Animation and sendGame. 2016-10-07 23:57:10 +02:00
__init__.py Fix travis 2015-09-07 16:33:00 -03:00
base.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_audio.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_bot.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_botan.py move botan to contrib 2016-05-28 09:12:10 +02:00
test_chat.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_choseninlineresult.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_constants.py fix yapf 2016-08-26 11:17:05 +02:00
test_contact.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_conversationhandler.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_document.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_file.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_filters.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
test_forcereply.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_game.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinekeyboardbutton.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinekeyboardmarkup.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequery.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultarticle.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultaudio.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcachedaudio.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcacheddocument.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcachedgif.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcachedmpeg4gif.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcachedphoto.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcachedsticker.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcachedvideo.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcachedvoice.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultcontact.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultdocument.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultgif.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultlocation.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultmpeg4gif.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultphoto.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultvenue.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultvideo.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inlinequeryresultvoice.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inputcontactmessagecontent.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inputlocationmessagecontent.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inputmessagecontent.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inputtextmessagecontent.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_inputvenuemessagecontent.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_jobqueue.py Job queue time units (#452) 2016-11-08 23:39:25 +01:00
test_keyboardbutton.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_location.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_message.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
test_messageentity.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_parsemode.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_photo.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_replykeyboardhide.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_replykeyboardmarkup.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_replymarkup.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_sticker.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_update.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_updater.py Add pass_user_data and pass_chat_data to Handler (#436) 2016-10-25 19:28:34 +02:00
test_user.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_venue.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_video.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
test_voice.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00