MCPcopy Create free account
hub / github.com/AtakanTekparmak/agento / test_execute_python_code_basic

Function test_execute_python_code_basic

tests/test_engine.py:5–10  ·  view source on GitHub ↗

Test the basic execution of Python code.

()

Source from the content-addressed store, hash-verified

3from agento.client import ChatCompletionMessage, ChatMessage
4
5def 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
12def test_execute_python_code_with_functions():
13 """Test the execution of Python code with functions."""

Callers

nothing calls this directly

Calls 1

execute_python_codeFunction · 0.90

Tested by

no test coverage detected