Merge branch 'aiogram:dev-3.x' into dev-3.x

This commit is contained in:
m-xim 2025-02-21 16:35:40 +03:00 committed by GitHub
commit 391188ef91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
74 changed files with 717 additions and 129 deletions

View file

@ -170,6 +170,16 @@ class TestKeyboardBuilder:
if last_columns:
assert len(markup[-1]) == last_columns
def test_add_wo_max_width(self):
builder = KeyboardBuilder(button_type=KeyboardButton)
builder.max_width = 0
count = 42
for index in range(count):
builder.add(KeyboardButton(text=f"btn-{index}"))
assert len(list(builder.buttons)) == count
def test_row(
self,
):