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

Function test_parse_args

tests/api_utils/test_stream.py:138–146  ·  view source on GitHub ↗

Test command-line argument parsing for proxy configuration.

()

Source from the content-addressed store, hash-verified

136
137
138def test_parse_args():
139 """Test command-line argument parsing for proxy configuration."""
140 with patch("argparse.ArgumentParser.parse_args") as mock_parse:
141 mock_parse.return_value = argparse.Namespace(
142 host="1.2.3.4", port=9999, domains=["*.test.com"], proxy=None
143 )
144 args = parse_args()
145 assert args.host == "1.2.3.4"
146 assert args.port == 9999
147
148
149@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

parse_argsFunction · 0.90

Tested by

no test coverage detected