aiogram/tests/test_filters
m-xim 658f1fc082
Some checks failed
Tests / tests (macos-latest, 3.10) (push) Has been cancelled
Tests / tests (macos-latest, 3.11) (push) Has been cancelled
Tests / tests (macos-latest, 3.12) (push) Has been cancelled
Tests / tests (macos-latest, 3.13) (push) Has been cancelled
Tests / tests (macos-latest, 3.9) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.10) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.11) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.12) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.13) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.9) (push) Has been cancelled
Tests / tests (windows-latest, 3.10) (push) Has been cancelled
Tests / tests (windows-latest, 3.11) (push) Has been cancelled
Tests / tests (windows-latest, 3.12) (push) Has been cancelled
Tests / tests (windows-latest, 3.13) (push) Has been cancelled
Tests / tests (windows-latest, 3.9) (push) Has been cancelled
Tests / pypy-tests (macos-latest, pypy3.10) (push) Has been cancelled
Tests / pypy-tests (macos-latest, pypy3.9) (push) Has been cancelled
Tests / pypy-tests (ubuntu-latest, pypy3.10) (push) Has been cancelled
Tests / pypy-tests (ubuntu-latest, pypy3.9) (push) Has been cancelled
Fix handling of default empty string ("") in CallbackData filter (#1493)
* Update callback_data.py

Allows using a default value in the class which is equal to an empty string ("").

Example:
class MyCallbackData(CallbackData, prefix="MyCallbackData"):
    input1: str
    input2: str = ""

* Create 1493.bugfix.rst

* Update callback_data.py

Fixed an issue that prevented unpacking None values.

* Added tests for CallbackData

* Update tests/test_filters/test_callback_data.py

Co-authored-by: Oleg A. <t0rr@mail.ru>

* Update test_callback_data.py

* Update callback_data.py

* Update 1493.bugfix.rst

---------

Co-authored-by: Oleg A. <t0rr@mail.ru>
2025-03-11 00:14:13 +02:00
..
__init__.py Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_base.py Remove warnings about pytest asyncio mode 2022-12-30 16:10:06 +02:00
test_callback_data.py Fix handling of default empty string ("") in CallbackData filter (#1493) 2025-03-11 00:14:13 +02:00
test_chat_member_updated.py Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
test_command.py ignore_case fix for aiogram.filters.command.Command() (#1107) 2023-02-04 19:52:36 +02:00
test_exception.py Handle expected warnings & raise unexpected warnings (#1315) 2023-10-01 15:28:54 +03:00
test_logic.py Removed Text filter (#1170) 2023-04-22 20:21:17 +03:00
test_magic_data.py Remove warnings about pytest asyncio mode 2022-12-30 16:10:06 +02:00
test_state.py Remove warnings about pytest asyncio mode 2022-12-30 16:10:06 +02:00