Rahiel Kasim
fe14000515
remove tests for telegram.Emoji
2016-08-21 11:58:00 +02:00
Rahiel Kasim
00bba73673
drop Python 2.6 support ( closes #245 ) ( #386 )
...
* drop Python 2.6 support (closes #245 )
* fix NullHandler import
* README: explicitly mention Py3 and PyPy compatibility
2016-08-20 22:01:07 +02:00
Jannes Höke
555e36ee80
tests
2016-08-06 14:47:45 +02:00
Jannes Höke
ad3eec2af8
ConversationHandler ( #331 )
...
* initial commit for conversationhandler and example
* implement simple Promise for run_async/conversationhandler
* refactor Promise._done to done
* add handling for timed out Promises
* correctly handle promises with None results
* fix handling tuple states
* update comments on example
* Added a first test on the ConversationHandler.
* Fixed a small typo.
* Yapf'd.
* add sphinx doc for conversation handler
* fix title for callbackqueryhandler sphinx docs
2016-07-15 01:30:54 +02:00
Rahiel Kasim
04a871aff5
introduce constants module ( #342 )
2016-07-14 21:48:31 +02:00
Noam Meltzer
35872d7a8b
test_jobqueue: fix test_jobs_tuple()
...
this test was based on timing and assumed that the JobQueue did not have
time to start processing the queue before checking the assert.
what we really should do is make sure JobQueue does not process anything
2016-06-24 19:13:40 +03:00
Jannes Höke
c4a8ee5175
Merge branch 'master' into jobqueue-rework
...
Conflicts:
tests/test_jobqueue.py
2016-06-20 05:32:15 +02:00
Jannes Höke
738e3213a7
Merge branch 'master' into jobqueue-rework
2016-06-20 00:49:01 +02:00
leandrotoledo
b41f7e3e79
Code style with latest yapf
2016-06-19 17:50:02 -04:00
Noam Meltzer
bc77c845ea
test_updater: make sure that conpool is stopped before setting updater
...
even for the first unitest, it might come after another unitests from
another file which had already init the conpool.
2016-06-18 09:53:08 +03:00
Noam Meltzer
a814e9de6b
make sure to stop conpool between sensitive unitests
2016-06-18 00:50:44 +03:00
Noam Meltzer
d37b6d6735
make sure to stop Updater after the test_createBot is over
2016-06-18 00:01:36 +03:00
Noam Meltzer
cb6ddfded5
Merge remote-tracking branch 'origin/master' into urllib3
2016-06-17 17:54:04 +03:00
leandrotoledo
f0b91ecf46
Fix travis
2016-06-03 13:44:24 -04:00
Jannes Höke
de2d732135
Merge branch 'master' into jobqueue-rework
...
Conflicts:
README.rst
telegram/ext/commandhandler.py
telegram/ext/messagehandler.py
2016-05-31 15:34:36 +02:00
Noam Meltzer
b040568b07
test_bot: fix for urllib3 compatibility
2016-05-30 01:05:19 +03:00
Rahiel Kasim
f31bd91673
Merge pull request #305 from python-telegram-bot/move-botan
...
move botan from utils to contrib
2016-05-28 21:32:07 +02:00
Rahiel Kasim
c8497424b7
move botan to contrib
2016-05-28 09:12:10 +02:00
Leandro Toledo
80fbe98b44
Reflecting tests for Filters change
2016-05-27 21:14:55 -03:00
Jannes Höke
a0bb5730c6
add allow_edited parameter to MessageHandler and CommandHandler
2016-05-27 11:07:06 +02:00
Leandro Toledo
9a13de4a96
Merge remote-tracking branch 'origin/master' into bot2.1
...
Conflicts:
telegram/bot.py
tests/test_bot.py
2016-05-26 16:15:50 -03:00
Noam Meltzer
561f1c3f02
bot: validate token does not contain white spaces ( #306 )
...
in addition move validation code from validate.py into bot.py and delete
the former file
2016-05-26 22:09:14 +03:00
Jannes Höke
bb165b6acf
add pass_job_queue parameter to all handler classes
2016-05-26 14:39:11 +02:00
Jannes Höke
20067ff178
add test for context parameter
2016-05-26 14:07:44 +02:00
Leandro Toledo
663fa0013d
merge master
2016-05-25 22:09:18 -03:00
Leandro Toledo
1e398821a0
Introducing telegram.error.BadRequest and testLeaveChat testcase #302
2016-05-25 21:15:17 -03:00
Jannes Höke
3aedd78e29
make job queue API similar to the dispatcher, add new functionality
2016-05-25 23:36:41 +02:00
Rahiel Kasim
386b91f708
refactor testing if user is bot
2016-05-25 09:41:48 +02:00
Rahiel Kasim
76b9a7d328
add tests for Bot.getChat*
2016-05-25 01:31:10 +02:00
Rahiel Kasim
c4d5eff9f3
move botan from utils to ext
2016-05-24 23:40:09 +02:00
Leandro Toledo
046e69b1c1
Commenting test for token with newline
2016-05-23 22:02:15 -03:00
Leandro Toledo
0b2fd120d8
Due kwargs I had to change the factory class in favor of InputLocationMessageContent #302
2016-05-23 21:09:07 -03:00
Leandro Toledo
7c84516d2b
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2016-05-23 19:44:34 -03:00
leandrotoledo
c7db9a96cd
Set split_before_logical_operator to True
2016-05-23 17:19:35 -03:00
Leandro Toledo
af89cbecf3
Add test for unstripped tokens [ci skip]
2016-05-22 18:22:22 -03:00
leandrotoledo
eb303903ef
Fix travis
2016-05-22 12:55:48 -03:00
Jannes Höke
f5847be8ca
update file size from 684 to 685
2016-05-17 10:19:00 +02:00
Leandro Toledo
880746baed
Column width to 90 #259
2016-05-14 21:52:35 -03:00
Leandro Toledo
8ad1f330ea
First run of yapf for tests/* #259
2016-05-14 21:39:11 -03:00
Jannes Höke
4d8174edc3
check for py2 and decode
2016-05-12 08:31:47 +02:00
Jannes Höke
235bb72702
use future.utils.text_to_native_str
2016-05-12 08:17:05 +02:00
Rahiel Kasim
9a5ccb1c2d
fix sticker emoji test
...
We always get utf-8 text from Telegram, so we compare to that.
2016-05-12 01:10:04 +02:00
Jannes Höke
c551d71735
add emoji field to sticker
2016-05-11 23:19:35 +02:00
Jannes Höke
6ec81dd552
move cleaning updates to bootstrapping phase ( #282 )
2016-05-11 00:58:55 +03:00
Jannes Höke
0e0611767a
add location attribute #272
2016-05-01 20:08:34 +02:00
Jannes Höke
d940afa718
merge master into cr4.0
2016-04-29 18:37:41 +02:00
Noam Meltzer
e160355190
remove unused imports, use future for urllib imports
2016-04-28 01:41:32 +03:00
Leandro Toledo
d80e0b4b8c
Add more test cases
2016-04-26 22:48:02 -03:00
Jannes Höke
7f463131aa
re-order imports
2016-04-27 00:28:21 +02:00
Leandro Toledo
a79f636345
Formatting
2016-04-26 19:08:35 -03:00
Leandro Toledo
4a4dbcdbf8
unittest2 for py2
2016-04-26 19:02:17 -03:00
Leandro Toledo
7b13adb34b
Renaming methods for InlineKeyboardButton
2016-04-26 18:58:22 -03:00
Leandro Toledo
e905f310c4
Renaming methods for KeyboardButton
2016-04-26 18:57:52 -03:00
Leandro Toledo
631c825c1d
Merge remote-tracking branch 'origin/unittest-bot2.0' into unittest-bot2.0
2016-04-26 18:51:02 -03:00
Leandro Toledo
ed7ecddb8d
address to _address due nose limitations
2016-04-26 18:50:47 -03:00
Jannes Höke
a3dae1f112
use correct filter in command filter test
2016-04-26 23:49:59 +02:00
Leandro Toledo
1d33c39a1b
Merge remote-tracking branch 'origin/unittest-bot2.0' into unittest-bot2.0
2016-04-26 18:43:56 -03:00
Leandro Toledo
14d3f62e44
Minor fix
2016-04-26 18:43:39 -03:00
Jannes Höke
931b22f49e
tests for Filters
2016-04-26 23:42:58 +02:00
Leandro Toledo
f0aafda1b9
Add KeyboardButtonTest
2016-04-26 18:40:48 -03:00
Leandro Toledo
ecb6ddd83d
Add VenueTest
2016-04-26 18:34:25 -03:00
Leandro Toledo
cb46b0373f
Add MessageEntityTest and reformatting.
2016-04-26 18:29:13 -03:00
Leandro Toledo
35f6de326b
Add InlineKeyboardButtonTest and reformatting.
2016-04-26 18:23:15 -03:00
leandrotoledo
1f29093027
Merge branch 'unittest-bot2.0' of https://github.com/python-telegram-bot/python-telegram-bot into unittest-bot2.0
2016-04-26 14:17:59 -03:00
Noam Meltzer
3f28633e79
MessageHandler / filters: refactor
...
filters are now functions instead of enum like objects.
their definitions were moved to messagehandler.py
2016-04-26 17:47:37 +03:00
Leandro Toledo
c0d63deae3
Merge remote-tracking branch 'origin/unittest-bot2.0' into unittest-bot2.0
2016-04-24 14:33:04 -03:00
Leandro Toledo
f152195a68
Minor fix
2016-04-24 14:32:52 -03:00
Jannes Höke
b2fd2ba697
add callback data
2016-04-24 19:00:21 +02:00
Jannes Höke
01cca924ca
inlinekeyboardmarkup test (failing)
2016-04-24 16:30:53 +02:00
Leandro Toledo
4b173bfd52
Add tests for InputContactMessageContent InputLocationMessageContent InputTextMessageContent InputVenueMessageContent
2016-04-24 11:08:06 -03:00
Leandro Toledo
ca1fff25f7
Some code reformat and minor fixes
2016-04-23 23:11:25 -03:00
Leandro Toledo
0d6b3a5411
Seems like self.address conflicts with nose. Validating...
2016-04-23 22:47:50 -03:00
Leandro Toledo
6cacea96f7
No clue what's going on with travis and Venue
2016-04-23 22:43:48 -03:00
Leandro Toledo
4775107af0
Trying to isolate the problem.
2016-04-23 22:40:52 -03:00
Leandro Toledo
fe06708d34
Trying to isolate the problem.
2016-04-23 22:37:59 -03:00
Leandro Toledo
6390b7fd9b
Going deeper...
2016-04-23 21:43:27 -03:00
Leandro Toledo
2160ce70a6
This piece of code killed Travis somehow, investigating.
2016-04-23 21:40:36 -03:00
Leandro Toledo
5e5125444c
Adding all the others inlinequeryresult tests #188 .
2016-04-23 21:26:59 -03:00
Leandro Toledo
f86e6f97db
Adding some inlinequeryresult tests #188 .
2016-04-23 21:06:18 -03:00
Leandro Toledo
325d8131ee
Adding input_message_content and reply_markup for existing inlinequery* tests.
2016-04-23 20:40:51 -03:00
Leandro Toledo
f68b8c3a4a
Adds InputContactMessageContent class, fixes InlineQueryResultArticle tests, de_json super calls for replymarkup objects and factory for InputMessageContent #188
2016-04-23 20:19:51 -03:00
leandrotoledo
4c0737d7c1
Moving InlineQuery* classes to its own test files
2016-04-23 10:47:10 -03:00
leandrotoledo
5dd95f1968
Renaming some tests
2016-04-23 10:39:52 -03:00
Jannes Höke
b30417681b
Merge pull request #248 from python-telegram-bot/bytes-images-py2
...
InputFile to support any objects with .read attribute
2016-04-23 14:36:59 +02:00
leandrotoledo
37e48b4707
Fixing BufferedReader test #248
2016-04-23 09:23:03 -03:00
leandrotoledo
252abb138d
Using hasattr instead isinstance for file check #119
2016-04-22 21:51:00 -03:00
Jannes Höke
cb79317354
remove lazy import of JobQueue
2016-04-21 20:37:43 +02:00
Jannes Höke
cfdfdeb4fc
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-21 17:20:05 +02:00
Leandro Toledo
0669c72fe3
Fixing little princes Python 2.6 string format arg #232
2016-04-21 12:18:51 -03:00
Leandro Toledo
a8255e4f51
Revert switch_inline_query #232
2016-04-21 11:42:02 -03:00
Leandro Toledo
e56c6dfab6
Revert "Minor fixes #232 "
...
This reverts commit 720c4d22d8
.
2016-04-21 11:20:09 -03:00
Leandro Toledo
720c4d22d8
Minor fixes #232
2016-04-21 10:56:38 -03:00
Leandro Toledo
bb36c725af
More refactoring and docstrings #232
2016-04-21 09:21:12 -03:00
Jannes Höke
9bf5da5ed3
add test for callback query handler
2016-04-21 13:07:44 +02:00
Jannes Höke
de5619f3ca
tests
2016-04-18 18:50:49 +02:00
Leandro Toledo
dd8f94885a
Commenting out deprecated arguments #232
2016-04-16 13:59:15 -03:00
Leandro Toledo
15cc410c10
Merge remote-tracking branch 'upstream/master' into bot-api-2.0
2016-04-16 13:16:49 -03:00
kiddick
a9b305edd0
Fix class declaration according to consistency. ( #235 )
2016-04-15 17:20:37 +03:00
Leandro Toledo
390184f605
Replacing assertIsInstance() to assertTrue(isinstance()) #232
2016-04-14 03:52:35 -03:00
Leandro Toledo
086fa1251c
Minor fixes #232
2016-04-14 03:40:26 -03:00