mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 12:35:13 +00:00
fix(remote): map a cut-off answer to a recoverable error and stop trusting an empty optional answer
This commit is contained in:
@@ -152,3 +152,11 @@ def test_resolve_proxy_value_error_becomes_click(monkeypatch: pytest.MonkeyPatch
|
||||
with pytest.raises(click.ClickException) as exc:
|
||||
resolve_proxy_arg("xx")
|
||||
assert "no such country" in str(exc.value.message)
|
||||
|
||||
|
||||
def test_resolve_server_leaves_the_config_services_untouched(single_remote_service) -> None:
|
||||
from unshackle.core import remote_service as rs
|
||||
|
||||
_, _, services = resolve_server("primary")
|
||||
assert services["_server_cdm"] is True
|
||||
assert rs.config.remote_services["primary"]["services"] == {"EXAMPLE": True, "DEMO": True}
|
||||
|
||||
Reference in New Issue
Block a user