[UX] Reject incompatible nested runtime overrides (#49247)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Taneem Ibrahim
2026-07-24 07:16:22 -07:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 8eac21a602
commit 7b40fb9645
4 changed files with 56 additions and 23 deletions
+1 -1
View File
@@ -831,7 +831,7 @@ def test_update_config(model_runner):
model_runner.update_config({"load_config": {"load_format": "dummy"}})
assert model_runner.load_config.load_format == "dummy"
# Raise error on non-existing config
with pytest.raises(AssertionError):
with pytest.raises(ValueError, match="do_not_exist_config"):
model_runner.update_config({"do_not_exist_config": "dummy"})