feat(dl): add --local to override a remote: true service config

This commit is contained in:
imSp4rky
2026-10-19 14:25:03 -06:00
parent 3aaf9c4107
commit ef75ea7d7a
6 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -64,8 +64,9 @@ def test_service_remote_routes_to_remote_command(
({"EXAMPLE": {"dl": {"remote": True, "server": "box"}}}, ["--server", "other"], None, ("remote", "other")),
({"EXAMPLE": {"dl": {"remote": False}}}, [], {"remote": True}, ("local", None)),
({"EXAMPLE": {"dl": {"remote": "false"}}}, [], None, ("local", None)),
({"EXAMPLE": {"dl": {"remote": True}}}, ["--local"], {"remote": True}, ("local", None)),
],
ids=["other-service", "cli-server-wins", "service-false-beats-global", "quoted-false-is-cast"],
ids=["other-service", "cli-server-wins", "service-false-beats-global", "quoted-false-is-cast", "cli-local-wins"],
)
def test_routing_precedence(
monkeypatch: pytest.MonkeyPatch,