diff options
author | Agustin Marquez <agusdmb@gmail.com> | 2021-10-25 08:28:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 09:28:50 +0300 |
commit | 36e00ec4e22a9f947e099affdfdc79862ac7ca08 (patch) | |
tree | 033f6af87bc7726b5d431015ea8b6c05c2053ec7 /tests/test_commands.py | |
parent | cf5c5865bb9947498f3810b028628f3d2ab14030 (diff) | |
download | redis-py-36e00ec4e22a9f947e099affdfdc79862ac7ca08.tar.gz |
Add FULL option to XINFO SUMMARY (#1638)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index fec453f..694090e 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -3156,6 +3156,18 @@ class TestRedisCommands: assert info['first-entry'] == get_stream_message(r, stream, m1) assert info['last-entry'] == get_stream_message(r, stream, m2) + @skip_if_server_version_lt('6.0.0') + def test_xinfo_stream_full(self, r): + stream = 'stream' + group = 'group' + m1 = r.xadd(stream, {'foo': 'bar'}) + r.xgroup_create(stream, group, 0) + info = r.xinfo_stream(stream, full=True) + + assert info['length'] == 1 + assert m1 in info['entries'] + assert len(info['groups']) == 1 + @skip_if_server_version_lt('5.0.0') def test_xlen(self, r): stream = 'stream' |