test: remove unreachable cases and strengthen weak assertions

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-22 17:19:20 +08:00
1 parent 169062be11
commit abfe510ce1
25 files changed
+64 -302

No files matched your search

+4 -2
View File
@@ -15,9 +15,11 @@ from nanobot.config.schema import Config
def test_save_config_round_trips(tmp_path: Path) -> None:
path = tmp_path / "config.json"
save_config(Config(), path)
config = Config()
config.agents.defaults.model = "saved-model"
save_config(config, path)
loaded = load_config(path)
assert loaded.agents.defaults.model
assert loaded.agents.defaults.model == "saved-model"
@pytest.mark.skipif(os.name == "nt", reason="Windows does not expose POSIX file modes")