@@ -16,9 +16,9 @@ def test_fn(
16
16
pass
17
17
18
18
fnc_ctx = TestFunctionContext ()
19
- assert (
20
- "test_function" in fnc_ctx . ai_functions
21
- ), "Function should be registered in ai_functions"
19
+ assert "test_function" in fnc_ctx . ai_functions , (
20
+ "Function should be registered in ai_functions"
21
+ )
22
22
23
23
fnc_info = fnc_ctx .ai_functions ["test_function" ]
24
24
build_info = _oai_api .build_oai_function_description (fnc_info )
@@ -69,9 +69,9 @@ def test_fn(self):
69
69
pass
70
70
71
71
fnc_ctx = TestFunctionContext ()
72
- assert (
73
- "test_fn" in fnc_ctx . ai_functions
74
- ), "Function should be registered in ai_functions"
72
+ assert "test_fn" in fnc_ctx . ai_functions , (
73
+ "Function should be registered in ai_functions"
74
+ )
75
75
76
76
assert fnc_ctx .ai_functions ["test_fn" ].description == "A simple test function"
77
77
@@ -92,9 +92,9 @@ def optional_fn(
92
92
pass
93
93
94
94
fnc_ctx = TestFunctionContext ()
95
- assert (
96
- "optional_function" in fnc_ctx . ai_functions
97
- ), "Function should be registered in ai_functions"
95
+ assert "optional_function" in fnc_ctx . ai_functions , (
96
+ "Function should be registered in ai_functions"
97
+ )
98
98
99
99
fnc_info = fnc_ctx .ai_functions ["optional_function" ]
100
100
build_info = _oai_api .build_oai_function_description (fnc_info )
@@ -159,9 +159,9 @@ def list_fn(
159
159
pass
160
160
161
161
fnc_ctx = TestFunctionContext ()
162
- assert (
163
- "list_function" in fnc_ctx . ai_functions
164
- ), "Function should be registered in ai_functions"
162
+ assert "list_function" in fnc_ctx . ai_functions , (
163
+ "Function should be registered in ai_functions"
164
+ )
165
165
166
166
fnc_info = fnc_ctx .ai_functions ["list_function" ]
167
167
build_info = _oai_api .build_oai_function_description (fnc_info )
@@ -202,9 +202,9 @@ def enum_fn(
202
202
pass
203
203
204
204
fnc_ctx = TestFunctionContext ()
205
- assert (
206
- "enum_function" in fnc_ctx . ai_functions
207
- ), "Function should be registered in ai_functions"
205
+ assert "enum_function" in fnc_ctx . ai_functions , (
206
+ "Function should be registered in ai_functions"
207
+ )
208
208
209
209
fnc_info = fnc_ctx .ai_functions ["enum_function" ]
210
210
build_info = _oai_api .build_oai_function_description (fnc_info )
0 commit comments