MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / server

Method server

tests/stream/test_proxy_server.py:39–40  ·  view source on GitHub ↗
(self, mock_cert_manager, mock_connector, mock_interceptor, mock_path)

Source from the content-addressed store, hash-verified

37
38 @pytest.fixture
39 def server(self, mock_cert_manager, mock_connector, mock_interceptor, mock_path):
40 return ProxyServer(intercept_domains=["example.com", "*.google.com"])
41
42 def test_should_intercept(self, server):
43 """Test domain interception matching (exact, wildcard, subdomain logic)."""

Callers

nothing calls this directly

Calls 1

ProxyServerClass · 0.90

Tested by

no test coverage detected