test_private_ip_rejected() — langchain Function Reference
Architecture documentation for the test_private_ip_rejected() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 07bbc600_2c0a_8fdd_59df_8991d285b326["test_private_ip_rejected()"] 18fc85bc_da26_74db_45fa_4abec36050de["TestSSRFProtectedUrlType"] 07bbc600_2c0a_8fdd_59df_8991d285b326 -->|defined in| 18fc85bc_da26_74db_45fa_4abec36050de style 07bbc600_2c0a_8fdd_59df_8991d285b326 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 233–240
def test_private_ip_rejected(self) -> None:
"""Test that private IPs are rejected by Pydantic schema."""
class WebhookSchema(BaseModel):
url: SSRFProtectedUrl
with pytest.raises(ValidationError):
WebhookSchema(url="http://192.168.1.1")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_private_ip_rejected() do?
test_private_ip_rejected() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_private_ip_rejected() defined?
test_private_ip_rejected() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 233.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free