From 5b2bc03e6675e1ae6256be5ccbe1c97eea58d12d Mon Sep 17 00:00:00 2001 From: Ryan Culbertson Date: Thu, 14 Nov 2024 01:51:59 +0000 Subject: [PATCH] improve comments --- test/conftest.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index 23080b3907..4b0d758e45 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -2030,7 +2030,7 @@ def disable_auto_mount(monkeypatch): def encode_input_jwt(idx: int, input_id: str, function_call_id: str) -> str: """ - Dummmy version of function defined in server. + Creates fake input jwt token. """ assert str(idx) and input_id and function_call_id return f"{idx}:{input_id}:{function_call_id}" @@ -2038,8 +2038,7 @@ def encode_input_jwt(idx: int, input_id: str, function_call_id: str) -> str: def decode_input_jwt(input_jwt: str) -> Tuple[int, str, str]: """ - Dummmy version of function defined in server. - Returns idx, input_id. + Decodes fake input jwt. Returns idx, input_id. """ parts = input_jwt.split(":") assert len(parts) == 3 @@ -2048,7 +2047,7 @@ def decode_input_jwt(input_jwt: str) -> Tuple[int, str, str]: def encode_function_call_jwt(function_id: str, function_call_id: str) -> str: """ - Dummmy version of function defined in server. + Creates fake function call jwt. """ assert function_id and function_call_id return f"{function_id}:{function_call_id}" @@ -2056,8 +2055,7 @@ def encode_function_call_jwt(function_id: str, function_call_id: str) -> str: def decode_function_call_jwt(function_call_jwt: str) -> Tuple[str, str]: """ - Dummmy version of function defined in server. - Returns function_id, function_call_id. + Decodes fake function call jwt. Returns function_id, function_call_id. """ parts = function_call_jwt.split(":") assert len(parts) == 2