diff options
author | Chayim <chayim@users.noreply.github.com> | 2022-09-07 13:16:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 13:16:28 +0300 |
commit | cdba4ff001f96e3deae8ac94969f11dde5253d94 (patch) | |
tree | 62350dd8f54ac8047978a4a1a92d925e97f5cea2 | |
parent | 744cb09055e464ceb233d80d2c4efa6ec2119aad (diff) | |
download | redis-py-cdba4ff001f96e3deae8ac94969f11dde5253d94.tar.gz |
fixing async test for module list (#2367)
-rw-r--r-- | tests/test_asyncio/test_commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_asyncio/test_commands.py b/tests/test_asyncio/test_commands.py index 422328a..1242e04 100644 --- a/tests/test_asyncio/test_commands.py +++ b/tests/test_asyncio/test_commands.py @@ -2986,7 +2986,8 @@ class TestRedisCommands: @pytest.mark.onlynoncluster async def test_module_list(self, r: redis.Redis): assert isinstance(await r.module_list(), list) - assert not await r.module_list() + for x in await r.module_list(): + assert isinstance(x, dict) @pytest.mark.onlynoncluster |