Skip to content

Commit

Permalink
Python: Modified FUNCTION LIST test to test byte arguments (valkey-…
Browse files Browse the repository at this point in the history
…io#1766)

* Modified function list test to include byte arguments

* Lint
  • Loading branch information
GumpacG authored Jul 2, 2024
1 parent fe13658 commit edaeeea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7478,7 +7478,7 @@ async def test_function_list(self, redis_client: TGlideClient):
await redis_client.function_load(code)

check_function_list_response(
await redis_client.function_list(lib_name),
await redis_client.function_list(lib_name.encode()),
lib_name,
{func_name: None},
{func_name: {b"no-writes"}},
Expand All @@ -7500,7 +7500,9 @@ async def test_function_list(self, redis_client: TGlideClient):
)

no_args_response = await redis_client.function_list()
wildcard_pattern_response = await redis_client.function_list("*", False)
wildcard_pattern_response = await redis_client.function_list(
"*".encode(), False
)
assert len(no_args_response) == original_functions_count + 1
assert len(wildcard_pattern_response) == original_functions_count + 1
check_function_list_response(
Expand Down

0 comments on commit edaeeea

Please sign in to comment.