Skip to content

Commit

Permalink
test: tools/python.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed Aug 26, 2024
1 parent ca0a418 commit c5d3ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codeinterpreterapi/tools/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def test():
ci_params = CodeInterpreterParams.get_test_params(llm=llm, llm_tools=llm_tools, runnable_config=runnable_config)
tools_instance = PythonTools(ci_params=ci_params)
test_code = "print('test output')"
result = tools_instance.run_by_code("main.py", test_code)
result = tools_instance.run_by_code(test_code)
result = tools_instance.run_by_file("main.py")
print("result=", result)
assert "test output" in result
Expand Down

0 comments on commit c5d3ad2

Please sign in to comment.