diff options
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' |