MCPcopy Index your code
hub / github.com/e2b-dev/code-interpreter / test_bash

Function test_bash

python/tests/test_bash.py:4–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def test_bash():
5 with CodeInterpreter() as sandbox:
6 result = sandbox.notebook.exec_cell("!pwd")
7 assert "".join(result.stdout).strip() == "/home/user"

Callers

nothing calls this directly

Calls 2

CodeInterpreterClass · 0.90
exec_cellMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…