MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_https_url_unchanged

Function test_https_url_unchanged

tests/unit/test_input_handler.py:138–141  ·  view source on GitHub ↗

https URLs continue to extract the host via urlparse without hitting the scp fallback.

()

Source from the content-addressed store, hash-verified

136
137
138def test_https_url_unchanged() -> None:
139 """https URLs continue to extract the host via urlparse without hitting the scp fallback."""
140 host = InputHandler()._validate_url_host("https://github.com/org/repo.git", ALLOWED_GIT_HOSTS)
141 assert host == "github.com"
142
143
144def test_scp_ssrf_gate_fires() -> None:

Callers

nothing calls this directly

Calls 2

InputHandlerClass · 0.90
_validate_url_hostMethod · 0.80

Tested by

no test coverage detected