test: added test for add w/o max width

This commit is contained in:
Oleg A 2025-01-06 10:49:23 +03:00
parent c3071ac8f8
commit 0efd763f19
No known key found for this signature in database
GPG key ID: 7175209A1D749531

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)
count = 42
for index in range(count):
builder.add(KeyboardButton(text=f"btn-{index}"))
assert len(list(builder.buttons)) == count
def test_row(
self,
):