fix: harden sing-box egress rollout
This commit is contained in:
+2
-2
@@ -12,9 +12,9 @@ class CliTests(unittest.TestCase):
|
||||
with contextlib.redirect_stderr(io.StringIO()), self.assertRaises(SystemExit):
|
||||
_parser().parse_args(["import", "hysteria2://secret@example.com"])
|
||||
|
||||
def test_render_requires_output(self) -> None:
|
||||
def test_render_command_is_not_public(self) -> None:
|
||||
with contextlib.redirect_stderr(io.StringIO()), self.assertRaises(SystemExit):
|
||||
_parser().parse_args(["render"])
|
||||
_parser().parse_args(["render", "--output", "/etc/sing-box/config.json"])
|
||||
|
||||
def test_all_commands_parse(self) -> None:
|
||||
for command in ("check", "diff", "sync", "status", "doctor", "rollback"):
|
||||
|
||||
Reference in New Issue
Block a user