aiogram/tests
Oleg A e17e3bc71c
Fix CallbackData without default Optional (#1370)
* fix: CallbackData set optional as None

* docs: add fix changelog

* Add support for nullable fields in callback data

This update extends the callback data handling by adding support for nullable fields. The code now uses the Python typing structures `Optional` and `Union` to parse such fields correctly. A helper function `_check_field_is_nullable` has been added to assist in efficiently checking if a given field is nullable.

* Add support for nullable fields in callback data

This update extends the callback data handling by adding support for nullable fields. The code now uses the Python typing structures `Optional` and `Union` to parse such fields correctly. A helper function `_check_field_is_nullable` has been added to assist in efficiently checking if a given field is nullable.

---------

Co-authored-by: JRoot Junior <jroot.junior@gmail.com>
2023-11-20 22:39:09 +02:00
..
data/locales Dev 3.x i18n & improvements (#696) 2021-09-22 00:52:38 +03:00
test_api Fixed ResourceWarnings in tests (#1366) 2023-11-16 02:08:36 +02:00
test_dispatcher Reformat code 2023-11-17 00:28:47 +02:00
test_filters Fix CallbackData without default Optional (#1370) 2023-11-20 22:39:09 +02:00
test_flags Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_fsm Fix CallbackData without default Optional (#1370) 2023-11-20 22:39:09 +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 Handle expected warnings & raise unexpected warnings (#1315) 2023-10-01 15:28:54 +03: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