Skip to content

Commit

Permalink
Adding unit test for core info command related to modules info (#3507)
Browse files Browse the repository at this point in the history
  • Loading branch information
petyaslavova authored Feb 13, 2025
1 parent e1b8163 commit 7ddb747
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,21 @@ def test_info_multi_sections(self, r):
assert "redis_version" in res
assert "connected_clients" in res

@pytest.mark.redismod
@skip_if_server_version_lt("7.9.0")
def test_info_with_modules(self, r: redis.Redis):
res = r.info(section="everything")
assert "modules" in res
assert "search_number_of_indexes" in res

res = r.info(section="modules")
assert "modules" in res
assert "search_number_of_indexes" in res

res = r.info(section="search")
assert "modules" not in res
assert "search_number_of_indexes" in res

@pytest.mark.onlynoncluster
@skip_if_redis_enterprise()
def test_lastsave(self, r):
Expand Down

0 comments on commit 7ddb747

Please sign in to comment.