Commit graph

64 commits

Author SHA1 Message Date
mpa
9f4b76dabc tests(deprecated): quick fix add assert 2020-05-13 17:39:36 +04:00
mpa
c083fcd99a tests(deprecated):
add new check_deprecated context manager for version check, use mark.parametrize from pytest for observer deprecation tests
2020-05-12 16:07:16 +04:00
mpa
6cbf9cdde6 tests(deprecated-observer): clean code
remove empty possible func. add new condition for version major
2020-05-10 13:21:05 +04:00
mpa
4124770b0e refactor(handler): rename observers
Rename observers but with backward compatibility, relevant documentation
2020-05-10 03:02:31 +04:00
Alex Root Junior
01c6303d67 Add extensions for class-based error handler 2020-04-12 23:29:10 +03:00
Alex Root Junior
0fbd2819f9 Add filters and class based handler for errors 2020-04-12 23:20:44 +03:00
Alex Root Junior
9e673998f0 Errors handler 2020-04-12 22:13:25 +03:00
Alex Root Junior
5b6ec599b1 Add middlewares (API + Docs + Tests) 2020-04-12 20:27:32 +03:00
Alex Root Junior
82f89b9c1d Optimize events propagation by routers 2020-04-11 22:59:37 +03:00
Boger
a823e275a7 Merge BaseBot to Bot class 2020-03-25 15:36:19 +03:00
Alex Root Junior
0bd7fc2c7e Fix async test for py3.7 2020-02-22 23:12:42 +02:00
Alex Root Junior
eea75b8e9a Fix typing 2020-02-22 01:28:46 +02:00
Alex Root Junior
3f5c51e805 Add webhook feed method to Dispatcher 2020-02-22 00:59:10 +02:00
Alex Root Junior
3dd5530241 Propagate update to context in router 2020-01-26 02:34:32 +02:00
Alex Root Junior
4caa8faab8 Update tests 2020-01-25 18:26:30 +02:00
Alex Root Junior
ae55497842 Supports Bot API 4.6 (Broken tests) 2020-01-24 01:07:22 +02:00
jrootjunior
cfd869b797 Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x 2020-01-22 12:38:38 +02:00
Alex Root Junior
895b727ddf More class based handlers 2020-01-21 23:33:44 +02:00
jrootjunior
e43bc5b2fe More tests for commands filter 2020-01-21 17:32:36 +02:00
Alex Root Junior
b144332287 Allow to use regular values as the same with another sequences in filters 2020-01-15 23:34:33 +02:00
Alex Root Junior
42faee0178 Update filters typing and cover ContentTypesFilter 2020-01-13 21:17:53 +02:00
Alex Root Junior
9907eada32 Refactor EventObserver & TelegramEventObserver 2020-01-13 21:17:28 +02:00
Alex Root Junior
690223f4e0 Try prevent to attr-defined mypy error 2020-01-11 21:33:45 +02:00
Alex Root Junior
8e5cb067df Use AsyncMock with python 3.8 instead of asynctest 2020-01-11 21:15:46 +02:00
Alex Root Junior
e12aca9046 Move prepare_<field> to single module and add tests for default parse_mode 2019-12-26 01:35:21 +02:00
Alex Root Junior
a2cb637ed9 Make Dispatcher._run_polling public 2019-12-26 00:00:53 +02:00
Alex Root Junior
2529f6cf59 Reformat code 2019-12-15 22:01:53 +02:00
Alex Root Junior
9c2a3d1324 Move router validation to Router.parent_router 2019-12-15 22:01:13 +02:00
jrootjunior
ad17143d3f Pydoc observer 2019-12-13 12:19:39 +02:00
jrootjunior
97acf956e9 Allow to disable builtin filters for router 2019-12-13 11:08:33 +02:00
jrootjunior
9dc1e9ff1a Rename run to run_polling 2019-12-12 11:58:21 +02:00
Alex Root Junior
dadedc80a9 Add possibility to include router via string 2019-12-12 00:28:37 +02:00
Alex Root Junior
6ee05fb901 Add tests for content types 2019-12-11 21:31:31 +02:00
Alex Root Junior
8df6c345c3 Fix tests 2019-12-11 20:50:59 +02:00
jrootjunior
647d03b2d4 Remove filters from class based handlers 2019-12-11 16:45:10 +02:00
jrootjunior
acbe1f81b6 Cover Dispatcher.run 2019-12-11 15:49:42 +02:00
jrootjunior
90a035ed29 Cover Dispatcher._run_polling 2019-12-11 15:47:08 +02:00
jrootjunior
dcbf9b2760 Mock Dispatcher._polling 2019-12-11 15:39:50 +02:00
jrootjunior
2451b88ff5 Disable old API exceptions 2019-12-11 15:25:28 +02:00
jrootjunior
1723a83697 Cover Dispatcher.process_update 2019-12-11 15:22:52 +02:00
Alex Root Junior
db397e3a05 Rework polling and start covering 2019-12-10 01:14:58 +02:00
Alex Root Junior
38c725db46 Fix test "test_dispatcher.test_dispatcher.TestDispatcher::test_feed_raw_update" 2019-12-09 21:39:06 +02:00
Alex Root Junior
2d6fc85dc0 Reformat code 2019-12-09 21:22:55 +02:00
jrootjunior
9d78e82f8c Cover Command filter 2019-12-04 18:04:29 +02:00
jrootjunior
1cd993009e Refactor command filter and fix typing 2019-12-03 18:32:21 +02:00
Alex Root Junior
b82a1a6fb0 Add prototype of class-based handlers 2019-12-03 00:03:15 +02:00
Alex Root Junior
40b6a61e70 Add text filter and mechanism for registering builtin filters 2019-11-29 23:16:11 +02:00
Alex Root Junior
e37395b161 Maximum coverage 2019-11-28 23:52:02 +02:00
Alex Root Junior
6fadb8feb2 Add Dispatcher.feed_raw_update for processing raw updates 2019-11-28 23:48:33 +02:00
Alex Root Junior
c674b5547b Add token validation util, fix deepcopy of sessions and make bot hashable and comparable 2019-11-28 23:12:44 +02:00