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 |
|
leandrotoledo
|
ba0ea4f268
|
Add TOKEN and CHAT_ID for testing in favor of #221
|
2016-03-31 15:36:18 -03:00 |
|
Jannes Höke
|
6db377d56d
|
Only set webhook if using SSL and also send certificate
|
2016-03-23 10:11:10 +01:00 |
|
leandrotoledo
|
da193711b1
|
Add legacy imports test to Dispatcher and JobQueue
|
2016-03-22 11:12:47 -03:00 |
|
Jannes Höke
|
63a83d4cc2
|
fix imports of updatequeue
|
2016-03-22 02:48:56 +01:00 |
|
Noam Meltzer
|
2939885c5b
|
test_updater: import Updater from telegram.ext
|
2016-03-15 22:08:06 +02:00 |
|
Noam Meltzer
|
f07f33e160
|
updater: unitests for _set_webhook
|
2016-03-15 22:02:34 +02:00 |
|
Rahiel Kasim
|
98112d3987
|
move Updater and friends to ext submodule
|
2016-03-14 14:50:12 +01:00 |
|
Aydar Biktimirov
|
0600b2634e
|
added tests for disable_notification parameter
|
2016-03-11 09:37:43 +03:00 |
|
Noam Meltzer
|
a0a040a9c2
|
updater: allow cleaning updates from Telegram servers before start
|
2016-03-01 22:12:12 +02:00 |
|
Jannes Höke
|
75c6662f35
|
leverage timing a bit more
|
2016-02-28 02:11:48 +01:00 |
|
Jannes Höke
|
b5875a3abd
|
increase timing for repeatedly failing travis test
|
2016-02-28 01:53:18 +01:00 |
|
Jannes Höke
|
4aca4d1d1f
|
Merge pull request #187 from python-telegram-bot/flaky-tests
Flaky tests
|
2016-02-28 01:02:11 +01:00 |
|
Noam Meltzer
|
2e6db1330f
|
test_botan.py: another flaky test
|
2016-02-27 23:39:03 +02:00 |
|
Noam Meltzer
|
26f87c4873
|
test_video.py: specify timeout for the sendVideo operation itself
|
2016-02-27 23:01:22 +02:00 |
|
Noam Meltzer
|
d2623d2671
|
test_voice.py: adapt to latest changes in the API
|
2016-02-27 22:53:40 +02:00 |
|
Noam Meltzer
|
ec8cd37345
|
test_video.py: adapt to latest changes in the API
|
2016-02-27 22:50:28 +02:00 |
|
Noam Meltzer
|
d5b35e7e1d
|
unitests: remove docstrings & prints - not needed with nosetests
|
2016-02-24 00:45:49 +02:00 |
|
Noam Meltzer
|
e0cf0abb1b
|
flaky tests: try up to 3 times, need to succeed once
|
2016-02-22 01:52:31 +02:00 |
|
Noam Meltzer
|
ec13a36bdd
|
unitests: use home brewed timeout for tests
|
2016-02-22 01:38:26 +02:00 |
|
Jannes Höke
|
d05fa1275a
|
use timed tests and flaky
|
2016-02-21 12:52:47 +01:00 |
|
Jannes Höke
|
efd10507d0
|
remove kwargs in favor of named keyword arguments, validate argument types
|
2016-02-21 11:33:34 +01:00 |
|
Jannes Höke
|
ca526fba73
|
improve unit tests according to comments
|
2016-02-20 12:14:34 +01:00 |
|
Jannes Höke
|
e2cc8db992
|
Merge branch 'master' into inlinebots
|
2016-02-20 11:17:34 +01:00 |
|
Noam Meltzer
|
7d39e1bdef
|
updater: more unitests for webookhandler
|
2016-02-19 18:00:57 +02:00 |
|
Jannes Höke
|
c55c5408b1
|
tests and corrections for inlinequery
|
2016-02-07 23:34:15 +01:00 |
|
Jannes Höke
|
d1dc32d849
|
tests and corrections for choseninlineresult
|
2016-02-07 23:26:38 +01:00 |
|
Jannes Höke
|
fc73948c82
|
fix to_dict tests
|
2016-02-07 23:25:48 +01:00 |
|
Jannes Höke
|
70dfb88eb5
|
complete tests for inline results
|
2016-02-07 22:56:25 +01:00 |
|
Jannes Höke
|
2a01292a64
|
Merge branch 'master' into inlinebots
|
2016-02-07 22:42:12 +01:00 |
|
Jannes Höke
|
bec81b5c3b
|
Merge pull request #161 from tsnoam/master
better exception handling
|
2016-02-07 22:34:49 +01:00 |
|
Jannes Höke
|
17ac73c3c4
|
fix message to json
|
2016-02-07 14:46:36 +01:00 |
|
Noam Meltzer
|
d4beb94059
|
Add specific exceptions types for important errors
maintain backward compatibility with the 'old' exception by inherting
from TelegramError and using the same message
|
2016-02-06 18:48:55 +02:00 |
|
Noam Meltzer
|
034d0054ea
|
test_audio: temp. disable duration unitest
due to telegram server bug
|
2016-02-06 18:34:30 +02:00 |
|
Jannes Höke
|
2436cab2e5
|
tests for gif and mpeg4
|
2016-02-03 02:09:05 +01:00 |
|
Jannes Höke
|
08836c60ca
|
tests for InlineQueryResultPhoto
|
2016-01-31 10:52:04 +01:00 |
|
Jannes Höke
|
8d94c14504
|
Merge branch 'master' into inlinebots
|
2016-01-29 23:55:34 +01:00 |
|
Jannes Höke
|
69183d85f7
|
add test for InlineQueryResultArticle
|
2016-01-29 23:54:49 +01:00 |
|
Jannes Höke
|
142cc6e6ad
|
add test for dispatching inline queries/results
|
2016-01-29 23:54:49 +01:00 |
|
Juan Madurga
|
c13af4d61d
|
parse mode for HTML added
|
2016-01-27 11:20:32 +01:00 |
|
Juan Madurga
|
702544f709
|
fix pep8 extra lines
|
2016-01-26 23:58:07 +01:00 |
|
Juan Madurga
|
713f0d1335
|
add tests for replymarkup objects
|
2016-01-26 23:43:16 +01:00 |
|
Jannes Höke
|
44645d2cc6
|
Merge pull request #157 from jlmadurga/context-for-handlers
Add context to dispatcher
|
2016-01-25 17:46:14 +01:00 |
|
Oleg Shlyazhko
|
1000a56e0d
|
more test vor botan module, increase coverage
|
2016-01-24 18:32:12 +03:00 |
|
Oleg Shlyazhko
|
5a2a541ae0
|
rename botan test correctly and move token to ENV
|
2016-01-23 19:09:56 +03:00 |
|
Oleg Shlyazhko
|
bb2cce56a3
|
insert correct appmetrica token instead of bot token in botan test
|
2016-01-23 16:58:44 +03:00 |
|
Oleg Shlyazhko
|
7931045bf3
|
test for botan analytics module
|
2016-01-23 14:24:49 +03:00 |
|
Juan Madurga
|
a6650de93d
|
Add context parameter to dispatcher. Handlers now can updates with a context data if required
|
2016-01-20 19:56:41 +01:00 |
|
Leandro Toledo
|
2a7b03e7c2
|
Fix travis - file_size is irrelevant for resend test
|
2016-01-13 19:15:11 -02:00 |
|
Leandro Toledo
|
9f55c15cc7
|
Add sendPhoto tests, fix file_id casting to str instead unicode
|
2016-01-11 22:25:46 -02:00 |
|
Leandro Toledo
|
a32ae8b895
|
Merge branch 'master' into urls
|
2016-01-11 22:12:06 -02:00 |
|
Leandro Toledo
|
a539a0c3a5
|
Add data object for sendPhoto tests
|
2016-01-11 22:11:29 -02:00 |
|
Leandro Toledo
|
b4abf75524
|
Fix data objects references for tests to raw files on Githup repo
|
2016-01-11 21:11:10 -02:00 |
|
Leandro Toledo
|
12d71d5a91
|
Fix file_size tests for send* by URL
|
2016-01-11 20:33:17 -02:00 |
|
Leandro Toledo
|
48bf6bfab0
|
Adding telegram.gif for testing purposes
|
2016-01-11 20:20:57 -02:00 |
|
Leandro Toledo
|
7227ca3aab
|
Tests for send(Audio,Voice,Video) by URL
|
2016-01-11 20:19:55 -02:00 |
|
Jannes Höke
|
d10b657521
|
enable sending by URL for all sendX methods
|
2016-01-10 15:12:42 +01:00 |
|
Jannes Höke
|
aa8966832b
|
release 3.2 and update copyright notice to 2015-2016
|
2016-01-05 14:12:03 +01:00 |
|
Jannes Höke
|
2875bae881
|
Integrate JobQueue with Updater
|
2016-01-05 13:32:19 +01:00 |
|
Jannes Höke
|
9319903343
|
rename testclass
|
2016-01-04 11:08:43 +01:00 |
|
Jannes Höke
|
73f4f26da5
|
more tests
|
2016-01-04 02:36:15 +01:00 |
|
Jannes Höke
|
24b2bf335c
|
Increase time for travis testing
|
2016-01-04 02:12:24 +01:00 |
|
Jannes Höke
|
fc3fa0f515
|
Increase time for travis testing
|
2016-01-04 02:11:42 +01:00 |
|
Jannes Höke
|
dd7d1255d1
|
fixes, tests and examples for job queue
|
2016-01-04 01:56:22 +01:00 |
|
Noam Meltzer
|
5d168bd479
|
improve unitest coverage
|
2016-01-04 00:34:39 +02:00 |
|
Noam Meltzer
|
1c8bb21790
|
fix python 2.6 unitests which with the backport package unittest2
|
2016-01-04 00:32:17 +02:00 |
|
Noam Meltzer
|
7734c1d6a6
|
fix unitests to work with new token validator
|
2016-01-04 00:32:13 +02:00 |
|
Jannes Höke
|
ea7c54ba07
|
Release v3.1.1, change author email everywhere
|
2015-12-21 21:18:53 +01:00 |
|
Jannes Höke
|
3c7b037eaa
|
add additional arguments 'groups' and 'groupdict' for regex handlers
|
2015-12-21 20:25:31 +01:00 |
|
Jannes Höke
|
c15a1bc151
|
fix for #123
|
2015-12-21 19:36:17 +01:00 |
|
Jannes Höke
|
6e158042e1
|
API updates Oct and Nov
|
2015-12-16 15:31:02 +01:00 |
|
Jannes Höke
|
56ab40d94f
|
increase time in test multiple messages
|
2015-12-01 21:58:39 +01:00 |
|
Gerd Augsburg
|
809fe4b74f
|
Updated tests for start_webhook
|
2015-12-01 14:48:55 +01:00 |
|
Jannes Höke
|
e60694a8cc
|
update test_webhook and add test_webhook_no_ssl
|
2015-11-30 23:00:56 +01:00 |
|
Jannes Höke
|
628a4c4eac
|
final renaming of files and flake8
|
2015-11-24 21:06:55 +01:00 |
|
Jannes Höke
|
83d2ca3aa7
|
assertIsNone(...) to assertTrue(None is ...)
|
2015-11-24 20:40:40 +01:00 |
|
Jannes Höke
|
29cdfe671e
|
test removehandler methods
|
2015-11-24 20:34:38 +01:00 |
|
Jannes Höke
|
f21b6046c5
|
test error in handler, other webhook server functionalites
|
2015-11-24 19:35:02 +01:00 |
|
Jannes Höke
|
e1f3f346bc
|
Test for Update.idle()
|
2015-11-24 14:57:54 +01:00 |
|
Jannes Höke
|
658b5ff1c0
|
update tests
|
2015-11-22 19:16:49 +01:00 |
|
Jannes Höke
|
15501e185b
|
renamed broadcaster.py to dispatcher.py
|
2015-11-22 14:52:41 +01:00 |
|
Jannes Höke
|
1782d0d19b
|
refactor Broadcaster to Dispatcher
|
2015-11-22 14:47:38 +01:00 |
|
Jannes Höke
|
c7a1d8dca3
|
test additional arguments
|
2015-11-22 14:08:33 +01:00 |
|
Jannes Höke
|
4d87e236be
|
Use random port for travis and py2&/py3 compability
|
2015-11-21 23:22:41 +01:00 |
|
Jannes Höke
|
29ab0556f0
|
test Webhook completed
|
2015-11-21 23:09:44 +01:00 |
|
Jannes Höke
|
6a80a33aef
|
test for error on getUpdates and began to test webhook
|
2015-11-21 21:22:58 +01:00 |
|
Jannes Höke
|
6626d4534e
|
test @run_async
|
2015-11-21 19:35:24 +01:00 |
|
Jannes Höke
|
6b309397e8
|
send less messages in more time so travis can take its time
|
2015-11-21 16:18:19 +01:00 |
|
Jannes Höke
|
d38add1a1c
|
really?
|
2015-11-21 15:50:39 +01:00 |
|
Jannes Höke
|
1c7e784662
|
add setWebhook to mock bot
|
2015-11-21 15:48:45 +01:00 |
|
Jannes Höke
|
0006294f29
|
update tests
|
2015-11-21 15:45:45 +01:00 |
|
Jannes Höke
|
c1f194a310
|
change all start() to start_polling()
|
2015-11-21 15:31:23 +01:00 |
|
Jannes Höke
|
1b79a57673
|
Merge branch 'master' of github.com:leandrotoledo/python-telegram-bot into boteventhandler
|
2015-11-15 17:38:37 +01:00 |
|
leandrotoledo
|
8f3fe123e3
|
Fix travis
|
2015-11-13 10:53:31 -02:00 |
|
Jannes Höke
|
2797111ced
|
First tests for BotEventHandler and Broadcaster
|
2015-11-10 23:15:37 +01:00 |
|
Jannes Höke
|
0e5b48f3b4
|
Add tests for Emoji class, since it now contains actual code
|
2015-11-03 14:47:13 +01:00 |
|
Leandro Toledo
|
cf5d184766
|
Add type to User and GroupChat classes
|
2015-10-08 10:19:05 -03:00 |
|
Leandro Toledo
|
1919f873c0
|
Fix tests
|
2015-09-20 12:47:02 -03:00 |
|
Leandro Toledo
|
a1f35355f6
|
Keep bleeding edge features on testing branch
|
2015-09-20 12:43:32 -03:00 |
|
Leandro Toledo
|
b79530b10c
|
Adding File and its tests
|
2015-09-20 12:28:10 -03:00 |
|
Leandro Toledo
|
f623db06ea
|
Revert "Feature/requests"
|
2015-09-16 00:21:45 -03:00 |
|
Leandro Toledo
|
eb557e0eba
|
Keeping features under development off this release
|
2015-09-10 20:37:25 -03:00 |
|
Leandro Toledo
|
354bfcad79
|
legacy tests now run using BaseTest
|
2015-09-10 20:06:27 -03:00 |
|
Leandro Toledo
|
a1e12d424c
|
Fix inverted lat/long
|
2015-09-10 16:59:08 -03:00 |
|
leandrotoledo
|
77977b99b1
|
Add tests to custom filename arg #56
|
2015-09-08 15:52:10 -03:00 |
|