Home / Function/ test_codex_policy_resolve_missing_binary() — langchain Function Reference

test_codex_policy_resolve_missing_binary() — langchain Function Reference

Architecture documentation for the test_codex_policy_resolve_missing_binary() function in test_shell_execution_policies.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  ad1bb040_4b1c_07aa_948f_2aab536b83e8["test_codex_policy_resolve_missing_binary()"]
  6b16168d_9880_7f41_060c_9fcd5b337996["test_shell_execution_policies.py"]
  ad1bb040_4b1c_07aa_948f_2aab536b83e8 -->|defined in| 6b16168d_9880_7f41_060c_9fcd5b337996
  style ad1bb040_4b1c_07aa_948f_2aab536b83e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py lines 246–250

def test_codex_policy_resolve_missing_binary(monkeypatch: pytest.MonkeyPatch) -> None:
    monkeypatch.setattr(shutil, "which", lambda _: None)
    policy = CodexSandboxExecutionPolicy(binary="codex")
    with pytest.raises(RuntimeError):
        policy._resolve_binary()

Domain

Subdomains

Frequently Asked Questions

What does test_codex_policy_resolve_missing_binary() do?
test_codex_policy_resolve_missing_binary() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py.
Where is test_codex_policy_resolve_missing_binary() defined?
test_codex_policy_resolve_missing_binary() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py at line 246.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free