test_docker_policy_validates_memory() — langchain Function Reference
Architecture documentation for the test_docker_policy_validates_memory() function in test_shell_execution_policies.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 88b6c47c_c413_1744_eee4_4ac533428b6e["test_docker_policy_validates_memory()"] 6b16168d_9880_7f41_060c_9fcd5b337996["test_shell_execution_policies.py"] 88b6c47c_c413_1744_eee4_4ac533428b6e -->|defined in| 6b16168d_9880_7f41_060c_9fcd5b337996 style 88b6c47c_c413_1744_eee4_4ac533428b6e 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 337–339
def test_docker_policy_validates_memory() -> None:
with pytest.raises(ValueError, match="memory_bytes must be positive if provided"):
DockerExecutionPolicy(memory_bytes=0)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_docker_policy_validates_memory() do?
test_docker_policy_validates_memory() 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_docker_policy_validates_memory() defined?
test_docker_policy_validates_memory() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py at line 337.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free