mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge branch 'aiogram:dev-3.x' into dev-3.x
This commit is contained in:
commit
391188ef91
74 changed files with 717 additions and 129 deletions
|
|
@ -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,
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue