aiogram/tests/test_api
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
..
test_client Fix style errors 2020-03-25 15:57:25 +03:00
test_methods Add sentinel value for parse_mode which can be None itself 2020-04-12 19:37:01 +03:00
test_types Add aliases to Message object (No docs) 2020-01-26 02:34:57 +02:00
__init__.py Add tests for BaseSession and TelegramAPIServer 2019-11-16 00:52:18 +02:00