MCPcopy
hub / github.com/huggingface/smolagents / test_str

Method test_str

tests/test_local_python_executor.py:2123–2126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2121 assert pc.value == "World"
2122
2123 def test_str(self):
2124 pc = PrintContainer()
2125 pc.append("Hello")
2126 assert str(pc) == "Hello"
2127
2128 def test_repr(self):
2129 pc = PrintContainer()

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
PrintContainerClass · 0.90

Tested by

no test coverage detected