python-telegram-bot/telegram
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
..
contrib fix yapf 2016-08-26 11:17:05 +02:00
ext Job queue time units (#452) 2016-11-08 23:39:25 +01:00
utils Add pass_user_data and pass_chat_data to Handler (#436) 2016-10-25 19:28:34 +02:00
__init__.py Make tests actually run at all 2016-10-03 21:07:41 +02:00
__main__.py __main__.py: assist with creating issues on github 2016-07-09 14:40:53 +03:00
animation.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
audio.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
base.py Class methods (#362) 2016-09-20 06:36:55 +02:00
bot.py Sphinx restructuring: Now builds PDF and better HTML docs (#449) 2016-11-01 06:53:51 +01:00
callbackgame.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
callbackquery.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
chat.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
chataction.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
chatmember.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
choseninlineresult.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
constants.py Add methods to parse entities in Message 2016-09-07 08:49:09 +02:00
contact.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
document.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
emoji.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
error.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
file.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
forcereply.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
game.py [ci skip] docs: add all missing classes 2016-11-01 09:01:36 +01:00
gamehighscore.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
inlinekeyboardbutton.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
inlinekeyboardmarkup.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
inlinequery.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
inlinequeryresult.py Documentation improvements + small style fixes 2016-10-17 01:11:20 +03:00
inlinequeryresultarticle.py Documentation improvements + small style fixes 2016-10-17 01:11:20 +03:00
inlinequeryresultaudio.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
inlinequeryresultcachedaudio.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
inlinequeryresultcacheddocument.py Documentation improvements + small style fixes 2016-10-17 01:11:20 +03:00
inlinequeryresultcachedgif.py Documentation improvements + small style fixes 2016-10-17 01:11:20 +03:00
inlinequeryresultcachedmpeg4gif.py Sphinx restructuring: Now builds PDF and better HTML docs (#449) 2016-11-01 06:53:51 +01:00
inlinequeryresultcachedphoto.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultcachedsticker.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultcachedvideo.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultcachedvoice.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
inlinequeryresultcontact.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultdocument.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultgame.py Add InlineQueryResultGame 2016-10-03 20:55:21 +02:00
inlinequeryresultgif.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultlocation.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultmpeg4gif.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultphoto.py more documentation 2016-10-17 23:44:40 +03:00
inlinequeryresultvenue.py Class methods (#362) 2016-09-20 06:36:55 +02:00
inlinequeryresultvideo.py Class methods (#362) 2016-09-20 06:36:55 +02:00
inlinequeryresultvoice.py Add caption fields to voice and audio 2016-10-03 15:05:49 +02:00
inputcontactmessagecontent.py Class methods (#362) 2016-09-20 06:36:55 +02:00
inputfile.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
inputlocationmessagecontent.py Class methods (#362) 2016-09-20 06:36:55 +02:00
inputmessagecontent.py Class methods (#362) 2016-09-20 06:36:55 +02:00
inputtextmessagecontent.py Class methods (#362) 2016-09-20 06:36:55 +02:00
inputvenuemessagecontent.py Class methods (#362) 2016-09-20 06:36:55 +02:00
keyboardbutton.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
location.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
message.py [ci skip] docs: add all missing classes 2016-11-01 09:01:36 +01:00
messageentity.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
parsemode.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
photosize.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
replykeyboardhide.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
replykeyboardmarkup.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
replymarkup.py Class methods (#362) 2016-09-20 06:36:55 +02:00
sticker.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
update.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
user.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
userprofilephotos.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
venue.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00
version.py Bump version to v5.2.0 2016-10-25 20:10:36 +02:00
video.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
voice.py Merge branch 'master' into october3 2016-10-19 12:35:50 +02:00
webhookinfo.py Fix grammer: 'a object' -> 'an object' 2016-10-17 01:22:40 +03:00