Skip to content

Commit

Permalink
add docstring to test helper func
Browse files Browse the repository at this point in the history
  • Loading branch information
ankona committed Aug 1, 2023
1 parent f8a3c56 commit 74f5bbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ def test_all_config_defaults():


def get_redisai_env(rai_path: t.Optional[str], lib_path: t.Optional[str]) -> t.Dict[str, str]:
"""Convenience method to create a set of environment variables
that include RedisAI-specific variables
:param rai_path: The path to the RedisAI library
:type: str (optional)
:param lib_path: The path to the SMARTSIM_DEP_INSTALL_PATH
:type: str (optional)
:return: A dictionary containing an updated set of environment variables
"""
env = os.environ.copy()
if rai_path:
env["RAI_PATH"] = rai_path
Expand Down

0 comments on commit 74f5bbc

Please sign in to comment.