test_valid_public_https_url() — langchain Function Reference
Architecture documentation for the test_valid_public_https_url() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ee237cd8_5d94_3663_13c0_e4f6ffd3a0c0["test_valid_public_https_url()"] 55eb5d18_546a_f8ab_e6ce_af072e9c336d["TestValidateSafeUrl"] ee237cd8_5d94_3663_13c0_e4f6ffd3a0c0 -->|defined in| 55eb5d18_546a_f8ab_e6ce_af072e9c336d style ee237cd8_5d94_3663_13c0_e4f6ffd3a0c0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 88–92
def test_valid_public_https_url(self) -> None:
"""Test that valid public HTTPS URLs are accepted."""
url = "https://hooks.slack.com/services/xxx"
result = validate_safe_url(url)
assert result == url
Domain
Subdomains
Source
Frequently Asked Questions
What does test_valid_public_https_url() do?
test_valid_public_https_url() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_valid_public_https_url() defined?
test_valid_public_https_url() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 88.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free