test: remove unreachable cases and strengthen weak assertions
This commit is contained in:
1 parent
169062be11
commit
abfe510ce1
25 files changed
+64
-302
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user