Egor
6e93facffc
chore: lint
2020-07-03 16:15:37 +05:00
Egor
d04e220fbb
fix: replace direct creation of Chat instances with usage of ChatFactory
2020-07-03 16:15:11 +05:00
Egor
3016c8e21e
feat: ChatFactory and private_chat fixture
2020-07-03 16:08:31 +05:00
Egor
e0baed8eee
feat: add UserFactory
2020-07-03 13:41:47 +05: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