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

Method test_repr

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

Source from the content-addressed store, hash-verified

2126 assert str(pc) == "Hello"
2127
2128 def test_repr(self):
2129 pc = PrintContainer()
2130 pc.append("Hello")
2131 assert repr(pc) == "PrintContainer(Hello)"
2132
2133 def test_len(self):
2134 pc = PrintContainer()

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
PrintContainerClass · 0.90

Tested by

no test coverage detected