Commit graph

75 commits

Author SHA1 Message Date
jrootjunior
7db212593b Fix typing for mocked_bot.py 2019-11-18 17:52:35 +02:00
jrootjunior
ef956f7ec2 Add API methods testing prototype 2019-11-18 17:44:07 +02:00
Alex Root Junior
7d1c4dcca8 Fix tests for base session with different timezones 2019-11-17 23:47:52 +02:00
Alex Root Junior
3a43ffc570 Add tests for BaseBot 2019-11-17 23:37:24 +02:00
Alex Root Junior
a46cd6d001 Small refactoring of telegram api server 2019-11-17 22:20:29 +02:00
Alex Root Junior
0e35b6f55e More tests for session 2019-11-17 01:12:39 +02:00
Alex Root Junior
7dc2a0ddaf Update tests and small refactoring 2019-11-16 22:32:26 +02:00
Alex Root Junior
a24708d589 Add tests for BaseSession and TelegramAPIServer 2019-11-16 00:52:18 +02:00
Alex Root Junior
c824b298c9 More tests (Helper and contextinstance) 2019-11-15 23:36:08 +02:00
jrootjunior
a6573656d0 Add tests for DataMixin 2019-11-15 14:09:37 +02:00
jrootjunior
65815e509f Clean obsolete code and change configs 2019-11-15 12:44:24 +02:00
jrootjunior
bdae5fb026 Clean project 2019-11-15 12:17:57 +02:00
Alex Root Junior
87393f2475 Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x
# Conflicts:
#	README.md
#	README.rst
#	aiogram/__init__.py
#	aiogram/bot/bot.py
#	aiogram/contrib/fsm_storage/redis.py
#	aiogram/contrib/middlewares/logging.py
#	aiogram/dispatcher/dispatcher.py
#	aiogram/dispatcher/filters/__init__.py
#	aiogram/dispatcher/filters/builtin.py
#	aiogram/dispatcher/filters/filters.py
#	aiogram/dispatcher/filters/state.py
#	aiogram/dispatcher/handler.py
#	aiogram/dispatcher/webhook.py
#	aiogram/types/base.py
#	aiogram/types/chat.py
#	aiogram/types/chat_member.py
#	aiogram/types/input_media.py
#	aiogram/types/message.py
#	aiogram/utils/callback_data.py
#	aiogram/utils/deprecated.py
#	aiogram/utils/exceptions.py
#	aiogram/utils/executor.py
#	aiogram/utils/helper.py
#	aiogram/utils/json.py
#	aiogram/utils/mixins.py
#	aiogram/utils/payload.py
#	dev_requirements.txt
#	docs/source/index.rst
#	examples/callback_data_factory.py
#	examples/check_user_language.py
#	examples/echo_bot.py
#	examples/finite_state_machine_example.py
#	examples/i18n_example.py
#	examples/inline_bot.py
#	examples/media_group.py
#	examples/middleware_and_antiflood.py
#	examples/payments.py
#	examples/proxy_and_emojize.py
#	examples/regexp_commands_filter_example.py
#	examples/throtling_example.py
#	examples/webhook_example.py
#	examples/webhook_example_2.py
#	setup.py
#	tests/test_bot.py
#	tests/test_token.py
#	tests/types/dataset.py
2019-11-03 22:19:44 +02:00
Suren Khorenyan
68a9df9222 Create OrderedHelper 2019-10-09 20:03:48 +03:00
Alex Root Junior
19fc1b8d80 Bump deprecated util and fix warning from tests related with new permissions object. 2019-08-16 22:57:13 +03:00
Suren Khorenyan
7863f052d9 Refactor aiogram/utils/auth_widget.py
+ fix check auth widget token in BaseBot, fix tests
2019-08-16 22:36:11 +03:00
Suren Khorenyan
277eb8b701 Refactor TextFilter and its tests 2019-08-11 23:35:59 +03:00
Suren Khorenyan
ad7238fda8 Some refactor 2019-08-10 00:08:11 +03:00
Suren Khorenyan
cabb10bc06 Create some tests 2019-08-10 00:08:11 +03:00
Suren Khorenyan
6cf06bd081 Fix test_states_group name 2019-08-10 00:08:11 +03:00
Alex Root Junior
8823c8f22a
Merge pull request #176 from Birdi7/add-multiple-text-filter
Add multiple text filter
2019-08-05 10:21:23 +03:00
Alex Root Junior
54d5406967
Merge branch 'dev-2.x' into is_chat_member 2019-08-04 21:26:18 +03:00
Gabben
1be6e1f31d Update test_chat_member.py 2019-08-04 23:18:57 +05:00
birdi
55c7c27925 add tests for multiple text filter 2019-07-27 13:26:57 +03:00
birdi
07ff9d77d6 Add tests for multiple Text filter 2019-07-24 11:57:17 +03:00
birdi
ab9264e2c9 Add tests which fall because empty string isn't a correct match string 2019-07-23 00:43:14 +03:00
birdi
c982fd54cc Fix contains test 2019-07-18 23:02:03 +03:00
birdi
46e5c7a3d0 Add ignore_case to equals test 2019-07-18 22:57:59 +03:00
birdi
0c9c837652 Add tests for text filter 2019-07-18 20:52:41 +03:00
Alex RootJunior
7c51b1a7d7 Add Black and Flake8 2019-06-29 19:53:18 +03:00
Gabben
a00b854533 Update test_chat_member.py 2019-06-28 14:46:56 +05:00
Gabben
cbb019283a ChatMember update
Deprecated methods removed

Added new RESTRICTED status

is_chat_member method has been updated: user could be restricted but remain a member.

Added tests for chat_member
2019-06-28 14:35:49 +05:00
Ilya Samartsev
5421982482 update exception matcher and fix tests 2019-06-02 14:39:17 +03:00
Nikita
088116e1c7 Reformat code 2019-03-24 00:15:09 +05:00
Alex Root Junior
843be46d19
Merge pull request #106 from aiogram/bot_from_context_exception
Raise Exception if there's no bot instance in context
2019-03-03 13:38:31 +02:00
Oleg A
4e4bbdfc7e Raise Exception if there's no bot instance in context 2019-02-25 13:23:50 +03:00
Oleg A
3a38125619 Check bot instance on Dispatcher __init__ 2019-02-25 12:34:26 +03:00
Alex Root Junior
69c126e027 Added tests for StatesGroup 2018-06-29 18:52:06 +03:00
Oleg A
69161403ba
Add chat migrate event to dataset 2018-05-22 02:21:44 +03:00
Alex Root Junior
65edaeb2b5 Add tests for token validator and widget util. 2018-05-04 01:19:36 +03:00
Alex Root Junior
d2232d127d Small changes in tests 2018-04-05 23:23:31 +03:00
Oleg Abramov
a1030145c9 Add editMessage and answerCallbackQ tests 2018-04-04 20:09:01 +03:00
Oleg Abramov
e58e084219 Add chat methods tests 2018-04-04 19:33:28 +03:00
Oleg Abramov
bd701c3768 Add exportChatInviteLink test 2018-04-04 18:47:32 +03:00
Oleg Abramov
dd559da6f4 Add promoteChatMember test 2018-04-04 18:17:43 +03:00
Oleg Abramov
3548febeaf Add restrictChatMember test 2018-04-04 18:14:42 +03:00
Oleg Abramov
28484d9352 Add unbanChatMember test 2018-04-04 18:12:21 +03:00
Oleg Abramov
90de8b2d4b Add kickChatMember test 2018-04-04 18:11:03 +03:00
Oleg Abramov
959f41a2f0 Add getFile test 2018-04-04 18:08:18 +03:00
Oleg Abramov
b95e977c12 Add getUserProfilePhotos test 2018-04-04 17:29:53 +03:00