MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_validate_url_accepts_https

Function test_validate_url_accepts_https

tests/test_security.py:38–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 assert validate_url("http://example.com/page") == "http://example.com/page"
37
38def test_validate_url_accepts_https():
39 assert validate_url("https://arxiv.org/abs/1706.03762") == "https://arxiv.org/abs/1706.03762"
40
41def test_validate_url_rejects_file():
42 with pytest.raises(ValueError, match="file"):

Callers

nothing calls this directly

Calls 1

validate_urlFunction · 0.90

Tested by

no test coverage detected