evgfilim1
8fe05ad2e8
Reformat files
2021-07-25 02:52:03 +05:00
evgfilim1
16eac75332
Test new and renamed API methods
2021-07-24 17:08:06 +05:00
evgfilim1
769ae8124c
Fix tests so they are able to run
2021-07-24 17:02:19 +05:00
Alex Root Junior
83d6ab48c5
Backport and improvements ( #601 )
...
* Backport RedisStorage, deep-linking
* Allow prereleases for aioredis
* Bump dependencies
* Correctly skip Redis tests on Windows
* Reformat tests code and bump Makefile
2021-06-15 01:45:31 +03:00
Aleksandr
32bc05130f
Added get_url() method for Message object and shifted_id property for Chat object ( #585 )
...
* Added get_url() method for Message object and shifted_id property for Chat object
* Added missing closing bracket to shifted_id description
* Added basic groups to skipped pattern, simplified code
* Return None instead of raising TypeError, removed redundant f-string
* Change get_url typing to Optional[str]
* Better shifted_id method
* get_url tests added
* Added whitespace (E226)
* Code format with black
* Parametrized test
2021-06-05 13:37:01 +03:00
Alex Root Junior
7dd80d281f
Added lost files
2021-05-12 23:56:03 +03:00
Alex Root Junior
4008a3114d
Upgrade architecture + 5.0 Bot API ( #469 )
...
Upgrade architecture + 5.0 Bot API (#469 )
* Moved `methods`, `types` and `client` to root package
* Removed update handler from routers to dispatcher
* Reworked events propagation mechanism to handlers
* Reworked inner middlewares logic (very small change)
* Updated to Bot API 5.0
* Initial migration from MkDocs to Sphinx + config for readthedocs
2021-01-26 21:20:52 +02:00
Alex Root Junior
f5684aef07
Update default parse_mode propagation.
2020-06-14 18:18:29 +03:00
Dima Boger
023245c76b
✨ Add sentinel value for parse_mode which can be None itself
...
Resolves #302 . We decided to use sentinel pattern (https://python-patterns.guide/python/sentinel-object/ ) as a solution, but got a few problems with plain `object()`, so instead we use unittest.mock.sentinel and we hope it won't cause side effects.
Most of work done via tg-codegen (https://github.com/aiogram/tg-codegen/pull/1 ), so it's good to review only implementation of sentinel, processing sentinel in `prepare_parse_mode`, changes in base method model and little test fixes.
2020-04-12 19:37:01 +03:00
Alex Root Junior
33003f2026
Add support of Bot API 4.7. Bump version
2020-04-11 20:15:03 +03:00
Alex Root Junior
4caa8faab8
Update tests
2020-01-25 18:26:30 +02:00
Alex Root Junior
d2d4f337fb
Update tests
2020-01-11 19:56:38 +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
jrootjunior
9d78e82f8c
Cover Command filter
2019-12-04 18:04:29 +02:00
jrootjunior
aa7c5796dd
Add default parse mode
2019-12-03 13:10:09 +02:00
Alex Root Junior
d7a35f50a9
Reformat code
2019-11-19 22:44:40 +02:00
Alex Root Junior
23abe35212
Update tests for all methods
2019-11-19 22:44:12 +02:00
jrootjunior
33c661d732
More tests
2019-11-19 18:54:02 +02:00
Alex Root Junior
5413cf4367
Reformate tests code
2019-11-19 00:05:19 +02:00
Alex Root Junior
e1b2226d03
Enable 37 auto-generated tests
2019-11-19 00:04:02 +02:00
Alex Root Junior
567584b741
Auto-generate tests for methods
2019-11-18 22:22:46 +02:00
jrootjunior
ef956f7ec2
Add API methods testing prototype
2019-11-18 17:44:07 +02:00
Alex Root Junior
a24708d589
Add tests for BaseSession and TelegramAPIServer
2019-11-16 00:52:18 +02:00