aiogram/tests
zemf4you 6f4452f4e0 refactor(backend): implement default value handling in serialization
The `json_serialize` method has been added to the `TelegramMethod` and
`TelegramObject` classes to replace `Default` placeholders with actual
values from the bot's defaults during JSON serialization. This change
ensures that non-standard objects are handled correctly, maintaining
backward compatibility for built-in pydantic json serialization.

This modification is beneficial as it centralizes the handling of
default values when serializing objects to JSON, making the code more
maintainable and robust against future changes in serialization logic.
2024-04-06 03:27:01 +07:00
..
data/locales Dev 3.x i18n & improvements (#696) 2021-09-22 00:52:38 +03:00
test_api refactor(backend): implement default value handling in serialization 2024-04-06 03:27:01 +07:00
test_dispatcher Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
test_filters Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
test_flags Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_fsm PoC Scenes (#1280) 2023-11-23 00:41:21 +02:00
test_handler Removed the use of the context instance (Bot.get_current) from all placements that were used previously. (#1230) 2023-07-28 22:23:32 +03:00
test_issues #1317 Fixed priority of events isolation (#1318) 2023-09-21 22:54:48 +03:00
test_utils Add missing Telegram WebApp API classes and fields (#1424) (#1425) 2024-02-26 02:13:32 +02:00
test_webhook Upgrade to py12 (#1354) 2023-11-18 21:24:19 +02:00
__init__.py Update tests and small refactoring 2019-11-16 22:32:26 +02:00
conftest.py Fixed ResourceWarnings in tests (#1366) 2023-11-16 02:08:36 +02:00
deprecated.py Upgrade architecture + 5.0 Bot API (#469) 2021-01-26 21:20:52 +02:00
docker-compose.yml Backport and improvements (#601) 2021-06-15 01:45:31 +03:00
mocked_bot.py "Add get_mounted_bot function and improve model comparison in tests" 2023-07-16 22:46:45 +03:00