Jelle Besseling
8320227b2a
ConvesationHandler - check if a user exist before using it ( #699 )
...
Fixes #695
2017-07-23 22:29:52 +03:00
Ihor Polyakov
08d298eb60
TelegramObject.de_json became classmethod ( #737 )
...
Fixes #734
2017-07-23 22:14:38 +03:00
Jacob Bom
5a37af6f89
Bot api 3.2 ( #732 )
...
NOTE: Currently not testing StickerSet in terms of bot methods (interaction with telegrams servers) as there's no delete operations.
2017-07-22 14:34:51 +03:00
Jacob Bom
94ed4cb38d
Bot api 3.1 ( #698 ) + minor improvements
...
- Added all the new and shiny features from API 3.1.
- Not API 3.1 changes:
- Use future.utils.string_types for string isinstance checks.
- Stall between retries of test_set_webhook_get_webhook_info() &
test_delete_webhook().
2017-07-01 18:08:45 +03:00
Eldinnie
b4b0eb4686
Tests files from website ( #687 )
...
Use website for send from url tests instead of github.
2017-06-23 21:10:43 +03:00
Noam Meltzer
8703ae0b8d
Merge pull request #683 from python-telegram-bot/no_hardcoded_fileids
...
No hardcoded fileids
2017-06-23 00:47:13 +03:00
Noam Meltzer
d216b83728
Merge pull request #685 from python-telegram-bot/cache-pip-ci
...
Cache pip for travis and appveyor + update to travis trusty container
2017-06-22 21:48:00 +03:00
Noam Meltzer
56949bcad6
Merge pull request #674 from python-telegram-bot/restructure-internal
...
Move a lot of files
2017-06-22 21:26:47 +03:00
Noam Meltzer
470ee86497
Merge pull request #677 from evgfilim1/new-filters
...
New filters for handling messages from specific chat/user id
2017-06-22 21:25:39 +03:00
Jacob Bom
5b9bb904c2
Skip "official" tests on pypy
...
inspect.signature() seems to return a string instead of an actual signature on pypy
2017-06-22 20:18:31 +02:00
Eldin
cedc38dcdf
finalising
...
* Added telegram.jpg to gitignore since we're downloading it now
* moved download tests to the right tests to make test_file file_id free
2017-06-22 18:29:21 +02:00
Eldin
ac0793caa2
test_sticker modified
...
* cleanup assertions in test_video
* modify test_sticker to same standard as the others.
2017-06-22 18:04:19 +02:00
Eldin
28836b7735
stickerfile added
2017-06-22 17:45:06 +02:00
Eldin
4fad382f26
standardize assertions
2017-06-22 17:17:40 +02:00
Jacob Bom
512ca2643f
Fix weird import in phototest
2017-06-22 15:40:43 +02:00
evgfilim1
ecfcc69cf9
Fixed tests
2017-06-22 15:20:11 +05:00
Noam Meltzer
4b3b0cb4cd
Merge pull request #668 from python-telegram-bot/official-test
...
Add an "official test"
2017-06-21 23:14:10 +03:00
Eldin
85e52f1930
delete test file
2017-06-21 19:02:36 +02:00
Eldin
976ad1b987
new shorter audiofile
2017-06-21 19:01:20 +02:00
Eldin
1f9f3ae8a1
shorter mp3 file
2017-06-21 18:55:59 +02:00
Eldin
d2f89382a0
sending from web stuff
...
* Audiofile sent from web is shorter then from local
* web-photo's send more than two imagesizes
2017-06-21 18:46:50 +02:00
Eldin
b49431931a
Reworked get_bot
...
It now decides wich bot to give depending on CI, and made ready or more bot's per version.
2017-06-21 18:25:04 +02:00
Eldin
fca64f5fc6
Move photo tests from test_bot to test_photo
2017-06-21 18:10:00 +02:00
Eldin
c92ebc4046
test_audio done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
* changed some tests in all file
2017-06-21 17:59:35 +02:00
Eldin
281bd67298
test_document done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 17:38:20 +02:00
Eldin
f6a98d7888
test_photo done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 17:21:18 +02:00
Eldin
e7b839b69e
Simple assertions in setUpClass
...
Py2 does not implement TestCase's assertions until setUp() is done. Hence we need simple assertions in the setUpClass
2017-06-21 16:50:40 +02:00
Eldin
4fe805ee0c
Clean up after conversation
...
Clean setUpClass + add assertions
remove obsolete tests
add test_expected_values
2017-06-21 16:09:51 +02:00
Eldin
4bf63d7358
reformat code
2017-06-21 00:34:46 +02:00
Eldin
991ee2bc88
sys.path why?
2017-06-21 00:33:23 +02:00
Eldin
c91ffc122a
test_videonote done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:31:14 +02:00
Eldin
7b7c4a81bb
test_voice done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:22:11 +02:00
Eldin
6b7ce7b8f0
test_video done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:12:26 +02:00
Eldin
8a89265c2d
first tries
2017-06-20 23:55:35 +02:00
Jacob Bom
9f1b63b165
Add module name to tests name
...
So they fit in with the rest better
2017-06-20 21:49:16 +02:00
Jacob Bom
0afe83ac30
Merge branch 'master' into official-test
2017-06-20 21:42:33 +02:00
evgfilim1
3bf4399a4f
Fixed tests
2017-06-20 12:49:01 +05:00
Jacob Bom
dba4739f76
Add a tiny test for unnamed filters
...
Increases coverage by 1 (one) line! Woo :D
2017-06-19 21:49:42 +02:00
evgfilim1
e18ebd035c
Added tests
2017-06-19 22:53:44 +05:00
Jacob Bom
01f3d88788
Update filter test
2017-06-18 16:25:48 +02:00
Jacob Bom
faddb92395
Clean up Bot code a bit ( #673 )
...
* Clean up Bot code a bit
- Move decorators to module. It really wasn't clear how decorators inside classes work, and why they didn't have a self parameter, but still wasn't static. This also makes them effectively private without having to underscore them, which I think we should have done long time ago atm. Note that this might break backwards compatibility slightly (only if people are daft enough to have used the decorators themselves)
- Don't call _message_wrapper directly. Ever. Instead always use the message decorator, since it's what it's there for. Closes #627
- Don't use the message decorator if the method isn't supposed to return a message. The decorator could handle values like True (which is often the return value), but to someone reading the code, it seems like it's a message returning method even when it wasn't.
- Always document timeout and **kwargs
- Log all methods
* Add test to make sure timeout propagates properly despite decorators
2017-06-18 12:14:24 +02:00
Jacob Bom
3ca6f6aa0e
Add official test
...
Cross references method and class signatures with official docs
2017-06-14 13:42:57 +02:00
saschalalala
3863b4f371
Rename shortcut functions to snake_case ( #661 )
...
* Rename shortcut functions to snake_case
* More function renaming
* Example function rewrite
* Add myself to authors.rst
* More function renaming
* Rename mockbot test functions
* Break comment line for flake max line length
2017-06-14 00:07:03 +02:00
Noam Meltzer
da8a3cee44
Merge pull request #631 from jeffffc/paymenthandlers
...
Add both handlers for queries from new Payment API
2017-06-09 18:23:29 +03:00
Eldin
bc3669fa4b
make commandhandler case insensitive
2017-06-09 17:45:15 +03:00
Eldin
7def2c53e1
fix tests for pycharm windows
...
Refractored self.id in new tests to self._id (as I did before) so testrunner in pycharm can run under Windows.
2017-06-09 17:44:43 +03:00
Eldin
0afb38f45c
Fix video_note tests
...
Added a video_note to send.
2017-06-09 12:27:10 +03:00
Noam Meltzer
2680740316
Merge pull request #641 from azogue/fixes
...
fix setting default mimetype of inputfile
2017-06-03 00:22:32 +03:00
Jeff
b6ba66ba8e
Fix typo in filter test
2017-06-03 02:05:26 +08:00
Jeff
eaf765dcbc
Remove duplicated/useless codes, added Filters.invoice test
2017-06-03 01:48:30 +08:00