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
Jacob Bom
04acbc4117
Remove the need for calling super() in filters
2017-06-21 13:46:03 +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
4b53ed1c65
Fix videonote import
2017-06-20 22:41:02 +02:00
Jacob Bom
1e4248136c
Merge branch 'master' into restructure-internal
2017-06-20 22:28:14 +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
Eldinnie
eee0f78b15
Add appveyor.yml ( #660 )
...
[ci skip]
2017-06-20 22:45:49 +03:00
Jacob Bom
0afe83ac30
Merge branch 'master' into official-test
2017-06-20 21:42:33 +02:00
Jacob Bom
6cc84b2c32
Only write repr as str will invoke it implicitly
2017-06-20 21:41:23 +02:00
evgfilim1
3bf4399a4f
Fixed tests
2017-06-20 12:49:01 +05:00
evgfilim1
9bccbdab2a
Added ability to filter by username
2017-06-20 12:43:07 +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
Jacob Bom
a964b7bfd0
Okay, so not even *args followed by a kwarg is allowed on py2...
...
So just remove it for now. Better than doing annoying stuff with parsing a **kwargs dict in my opinion. It didn't even *really* need to be kwarg only anyways I guess...
2017-06-19 21:46:34 +02:00
evgfilim1
e18ebd035c
Added tests
2017-06-19 22:53:44 +05:00
evgfilim1
5a62255675
Added new filters for handling specific chat id and user id
2017-06-19 22:50:44 +05:00
Jacob Bom
01f3d88788
Update filter test
2017-06-18 16:25:48 +02:00
Jacob Bom
2b871e6f93
* for keyword only arguments isn't supported on py2 it seems...
2017-06-18 16:22:59 +02:00
Jacob Bom
788b9dab0c
Fill in super() calls
2017-06-18 16:03:32 +02:00
Jacob Bom
4c41f3870c
Allow filters to have a name.
...
So their string representation is user friendly.
2017-06-18 15:28:48 +02:00
Jannes Höke
d5583190b8
Bump version to v6.1.0
2017-06-18 12:35:16 +02:00
Jacob Bom
5c2893111a
Move a lot of files
2017-06-18 12:35:00 +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
saschalalala
9b5e014a0a
Simplification of boolean checks ( #662 )
...
* Simplification of boolean checks
* Cast ok to bool for Telegram API json encoding
2017-06-18 12:09:32 +02:00
Jannes Höke
845312da59
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2017-06-16 04:16:45 +02:00
Alateas
6ffd75e421
Try to process response data after checking errors, not before. Add 413 File too large http error message.
2017-06-15 18:44:39 +03:00
Jacob Bom
dfb0ff27d3
Add bs4 to requirements
2017-06-14 14:04:39 +02:00
Jacob Bom
9b84a558fb
Fix width+height in sendVideo + game in Message
...
First errors found by the official test thingy
2017-06-14 13:48:45 +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
Eldinnie
25912dca6e
add --recursive in contributing guide ( #664 )
2017-06-14 00:02:16 +02:00
alateas
6877886f7d
Change hard-coded 20. to timeout parameter ( #663 )
...
* Change hard-coded 20. to timeout paramter
Passing timeout parameter to _message_wrapper in send_audio instead of hard-coded 20 seconds
* add myself to contributors
2017-06-14 00:01:38 +02:00
Noam Meltzer
d16d38530c
Merge pull request #658 from jeffffc/paymentbot_example_and_fixes
...
Add PaymentBot Example, Bugfixes on payment methods
2017-06-11 00:18:20 +03:00
Jeff
c7ed87d475
add telegram doc link comment
2017-06-11 04:30:21 +08:00
Jeff
a68e0ad044
bugfixes on error in answer_shipping_query and answer_precheckout_query
2017-06-11 03:45:48 +08:00
Jeff
ad603bd2f9
add new payment example
2017-06-11 03:43:38 +08:00
Jannes Höke
179fc141bb
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2017-06-10 21:24:28 +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
Noam Meltzer
09230e6e84
Merge pull request #649 from python-telegram-bot/fix-docs
...
Fix some documentation stuff
[ci skip]
2017-06-09 13:14:03 +03:00
Eldin
011e321583
Update gitignore with new video file
2017-06-09 12:27:10 +03:00
Eldin
0afb38f45c
Fix video_note tests
...
Added a video_note to send.
2017-06-09 12:27:10 +03:00
Jeff
4247dc0e21
tiny changes upon PR review
2017-06-08 09:47:19 +08:00
Jacob Bom
896392d01e
Merge branch 'master' into fix-docs
2017-06-07 13:12:32 +02:00