From 22037a4309780d0ac992934827436274f99c053e Mon Sep 17 00:00:00 2001 From: ruoyunbai <19376215@buaa.edu.cn> Date: Mon, 29 Sep 2025 13:09:08 +0800 Subject: [PATCH] test --- fastapi_server.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fastapi_server.py b/fastapi_server.py index a853f96..f6ce750 100644 --- a/fastapi_server.py +++ b/fastapi_server.py @@ -1129,7 +1129,13 @@ async def run_api_tests(config: TestConfig): "verbose": False } - config_dict = {**hidden_defaults, **raw_config} + config_dict = hidden_defaults.copy() + for key, value in raw_config.items(): + if value is None: + continue + if isinstance(value, str) and not value.strip(): + continue + config_dict[key] = value for default_path_key in ("custom_test_cases_dir", "stages_dir"): default_path = config_dict.get(default_path_key)