Test the basic execution of Python code.
()
| 3 | from agento.client import ChatCompletionMessage, ChatMessage |
| 4 | |
| 5 | def test_execute_python_code_basic(): |
| 6 | """Test the basic execution of Python code.""" |
| 7 | code = "x = 5\ny = 10\nresult = x + y" |
| 8 | output = execute_python_code(code) |
| 9 | assert output['variables'] == {'x': 5, 'y': 10, 'result': 15} |
| 10 | assert output['function_results'] == {} |
| 11 | |
| 12 | def test_execute_python_code_with_functions(): |
| 13 | """Test the execution of Python code with functions.""" |
nothing calls this directly
no test coverage detected