The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(config): cover unreadable dotenv warning path
fangliquanflq2cc83543bb30
diff --git a/tests/hermes_cli/test_deprecated_cwd_warning.py b/tests/hermes_cli/test_deprecated_cwd_warning.pyindex 5e7212ea37c..f01e103e1ce 100644--- a/tests/hermes_cli/test_deprecated_cwd_warning.py+++ b/tests/hermes_cli/test_deprecated_cwd_warning.py@@ -72,3 +72,15 @@ class TestDeprecatedCwdWarning:warn_deprecated_cwd_env_vars(config={})assert capsys.readouterr().err == ""++ def test_dotenv_read_failure_is_silent(self, monkeypatch, capsys):+ import hermes_cli.config as config_module++ def raise_read_error():+ raise OSError("permission denied")++ monkeypatch.setattr(config_module, "load_env", raise_read_error)++ config_module.warn_deprecated_cwd_env_vars(config={})++ assert capsys.readouterr().err == ""