test_codex_policy_formats_override_values() — langchain Function Reference
Architecture documentation for the test_codex_policy_formats_override_values() function in test_shell_execution_policies.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b7e849f8_7906_b6a8_672b_b5b58fc976bc["test_codex_policy_formats_override_values()"] 6b16168d_9880_7f41_060c_9fcd5b337996["test_shell_execution_policies.py"] b7e849f8_7906_b6a8_672b_b5b58fc976bc -->|defined in| 6b16168d_9880_7f41_060c_9fcd5b337996 style b7e849f8_7906_b6a8_672b_b5b58fc976bc 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 260–268
def test_codex_policy_formats_override_values() -> None:
policy = CodexSandboxExecutionPolicy()
assert policy._format_override({"a": 1}) == '{"a": 1}'
class Custom:
def __str__(self) -> str:
return "custom"
assert policy._format_override(Custom()) == "custom"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_codex_policy_formats_override_values() do?
test_codex_policy_formats_override_values() 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_formats_override_values() defined?
test_codex_policy_formats_override_values() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py at line 260.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free