Test command-line argument parsing for proxy configuration.
()
| 136 | |
| 137 | |
| 138 | def 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 |
nothing calls this directly
no test coverage detected