Added a test case for non-dictionary input in remove_unset method

This commit is contained in:
Alex Root Junior 2023-08-29 01:44:35 +03:00
parent fffc2b2d9e
commit 73ce05e887
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -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):