Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mockredis/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __call__(self, keys=[], args=[], client=None):
if not client.script_exists(self.sha)[0]:
self.sha = client.script_load(self.script)

return self._execute_lua(keys, args, client)
return self._execute_lua([str(key) for key in keys], [str(arg) for arg in args], client)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some unit tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course.
I'll add it to test_script.py


def _execute_lua(self, keys, args, client):
"""
Expand Down