144 matches across 1 files for error lang:Python path:libs/standard-tests/langchain_tests/integration_tests/sandboxes.py
snippet_mode: grep · sorted by relevance
libs/standard-tests/langchain_tests/integration_tests/sandboxes.py PYTHON 144 matches · showing 5 view file →
117 content = "Hello, sandbox!\nLine 2\nLine 3"
118 result = sandbox_backend.write(test_path, content)
119 assert result.error is None
120 assert result.path == test_path
121 exec_result = sandbox_backend.execute(f"cat {test_path}")
· · ·
133 result = sandbox_backend.read(test_path)
134 assert isinstance(result, ReadResult)
135 assert result.error is None
136 assert result.file_data is not None
137 assert all(
· · ·
151 result = sandbox_backend.read(test_path)
152 assert isinstance(result, ReadResult)
153 assert result.error is None
154 assert result.file_data is not None
155 assert result.file_data["encoding"] == "base64"
· · ·
171
172 assert isinstance(result, ReadResult)
173 assert result.error is None
174 assert result.file_data is not None
175 assert result.file_data["encoding"] == "base64"
· · ·
176 assert base64.b64decode(result.file_data["content"]) == raw_bytes
177
178 def test_read_binary_file_1_mib_returns_error(
179 self, sandbox_backend: SandboxBackendProtocol, sandbox_test_root: str
180 ) -> None:
+ 139 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.