test_parse_url_with_auth_no_port() — langchain Function Reference
Architecture documentation for the test_parse_url_with_auth_no_port() function in test_auth.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD febc02ff_0bcc_356c_d3d8_f78f36507ed1["test_parse_url_with_auth_no_port()"] b78a5e1c_0cac_9659_7fb9_742773fc11cc["TestUrlAuthEdgeCases"] febc02ff_0bcc_356c_d3d8_f78f36507ed1 -->|defined in| b78a5e1c_0cac_9659_7fb9_742773fc11cc style febc02ff_0bcc_356c_d3d8_f78f36507ed1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/ollama/tests/unit_tests/test_auth.py lines 207–217
def test_parse_url_with_auth_no_port(self) -> None:
"""Test URLs without explicit port numbers."""
url = "https://user:password@ollama.example.com"
cleaned_url, headers = parse_url_with_auth(url)
expected_url = "https://ollama.example.com"
expected_credentials = base64.b64encode(b"user:password").decode()
expected_headers = {"Authorization": f"Basic {expected_credentials}"}
assert cleaned_url == expected_url
assert headers == expected_headers
Domain
Subdomains
Source
Frequently Asked Questions
What does test_parse_url_with_auth_no_port() do?
test_parse_url_with_auth_no_port() is a function in the langchain codebase, defined in libs/partners/ollama/tests/unit_tests/test_auth.py.
Where is test_parse_url_with_auth_no_port() defined?
test_parse_url_with_auth_no_port() is defined in libs/partners/ollama/tests/unit_tests/test_auth.py at line 207.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free