File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ def test_input_messages_in_decorator(row: EvaluationRow) -> EvaluationRow:
2323 return row
2424
2525
26+ with mock .patch .dict (os .environ , {"EP_COMPLETION_PARAMS" : '[{"model": "gpt-40"}]' }):
2627
27- with mock .patch .dict (os .environ , {"EP_COMPLETION_PARAMS" : "[{\" model\" : \" gpt-40\" }]" }):
2828 @evaluation_test (
2929 input_rows = [[EvaluationRow (messages = [Message (role = "user" , content = "What is 5 * 6?" )])]],
3030 completion_params = [{"model" : "no-op" }], # This should be overridden by the env var
@@ -38,7 +38,6 @@ def test_input_messages_in_env(row: EvaluationRow) -> EvaluationRow:
3838 return row
3939
4040
41-
4241_jsonl_tmpdir = tempfile .mkdtemp ()
4342atexit .register (shutil .rmtree , _jsonl_tmpdir , ignore_errors = True )
4443
@@ -49,6 +48,7 @@ def test_input_messages_in_env(row: EvaluationRow) -> EvaluationRow:
4948 )
5049print (f"finish prepare input file { input_path } " )
5150with mock .patch .dict (os .environ , {"EP_JSONL_PATH" : input_path }):
51+
5252 @evaluation_test (
5353 input_rows = [[EvaluationRow (messages = [Message (role = "user" , content = "This will be ignored" )])]],
5454 completion_params = [{"model" : "no-op" }],
You can’t perform that action at this time.
0 commit comments