mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix tests
This commit is contained in:
parent
c209dd7e99
commit
639170bcd0
2 changed files with 2 additions and 3 deletions
|
|
@ -14,8 +14,7 @@ class TestReplyKeyboardRemove:
|
|||
), "Remove keyboard has incorrect default value!"
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"kwargs,expected",
|
||||
[[{}, True], [{"remove_keyboard": True}, True], [{"remove_keyboard": False}, False]],
|
||||
"kwargs,expected", [[{}, True], [{"remove_keyboard": True}, True]],
|
||||
)
|
||||
def test_remove_keyboard_values(self, kwargs, expected):
|
||||
assert ReplyKeyboardRemove(**kwargs).remove_keyboard is expected
|
||||
|
|
|
|||
|
|
@ -608,7 +608,7 @@ class TestDispatcher:
|
|||
|
||||
response = await dispatcher.feed_webhook_update(bot, RAW_UPDATE, _timeout=0.1)
|
||||
assert response is None
|
||||
await asyncio.sleep(0.1)
|
||||
await asyncio.sleep(0.2)
|
||||
|
||||
log_records = [rec.message for rec in caplog.records]
|
||||
assert "Cause exception while process update" in log_records[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue