From 73ce05e887064f8756de8d1b46f743a75010f41b Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Tue, 29 Aug 2023 01:44:35 +0300 Subject: [PATCH] Added a test case for non-dictionary input in remove_unset method --- tests/test_api/test_methods/test_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_api/test_methods/test_base.py b/tests/test_api/test_methods/test_base.py index 9626c9b7..8d25dfde 100644 --- a/tests/test_api/test_methods/test_base.py +++ b/tests/test_api/test_methods/test_base.py @@ -20,6 +20,9 @@ class TestTelegramMethodRemoveUnset: validated = TelegramMethod.remove_unset(values) assert set(validated.keys()) == names + def test_remove_unset_non_dict(self): + assert TelegramMethod.remove_unset("") == "" + class TestTelegramMethodCall: async def test_async_emit_unsuccessful(self, bot: MockedBot):