config: constructing a config no longer resolves it (#35907)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Cheng Wan
2026-08-23 01:18:53 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent 4bc79a1b49
commit 64aa859da2
34 changed files with 947 additions and 107 deletions
@@ -24,7 +24,11 @@ class TestServerArgsAnnotatedCli(CustomTestCase):
def _parse(self, args_list):
args = self.parser.parse_args(["--model", "dummy"] + args_list)
return ServerArgs.from_cli_args(args)
server_args = ServerArgs.from_cli_args(args)
# Parsing hands back the raw record; the cases below read values that
# resolution normalises, so resolve here the way a launcher would.
server_args.resolve_once()
return server_args
def test_aliases_and_dest(self):
"""Field name drives dest; long forms and short aliases both work."""