From 639170bcd0001cedaccaa55ae9936990a1f890fb Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Mon, 25 Jan 2021 00:32:04 +0200 Subject: [PATCH] Fix tests --- tests/test_api/test_types/test_reply_keyboard_remove.py | 3 +-- tests/test_dispatcher/test_dispatcher.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_api/test_types/test_reply_keyboard_remove.py b/tests/test_api/test_types/test_reply_keyboard_remove.py index e00d36c3..677c36e6 100644 --- a/tests/test_api/test_types/test_reply_keyboard_remove.py +++ b/tests/test_api/test_types/test_reply_keyboard_remove.py @@ -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 diff --git a/tests/test_dispatcher/test_dispatcher.py b/tests/test_dispatcher/test_dispatcher.py index a99b1bd0..ef32c712 100644 --- a/tests/test_dispatcher/test_dispatcher.py +++ b/tests/test_dispatcher/test_dispatcher.py @@ -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]