test_codex_policy_auto_platform_failure() — langchain Function Reference
Architecture documentation for the test_codex_policy_auto_platform_failure() function in test_shell_execution_policies.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a66e496f_2eb6_3b99_dff7_e168487d1feb["test_codex_policy_auto_platform_failure()"] 6b16168d_9880_7f41_060c_9fcd5b337996["test_shell_execution_policies.py"] a66e496f_2eb6_3b99_dff7_e168487d1feb -->|defined in| 6b16168d_9880_7f41_060c_9fcd5b337996 style a66e496f_2eb6_3b99_dff7_e168487d1feb 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 253–257
def test_codex_policy_auto_platform_failure(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(sys, "platform", "win32")
policy = CodexSandboxExecutionPolicy(platform="auto")
with pytest.raises(RuntimeError):
policy._determine_platform()
Domain
Subdomains
Source
Frequently Asked Questions
What does test_codex_policy_auto_platform_failure() do?
test_codex_policy_auto_platform_failure() 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_auto_platform_failure() defined?
test_codex_policy_auto_platform_failure() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py at line 253.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free