mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(cronjob): require explicit truthy session env values
This commit is contained in:
parent
4ad5fa702f
commit
734aa0f367
2 changed files with 18 additions and 3 deletions
|
|
@ -122,6 +122,13 @@ class TestCronjobRequirements:
|
|||
|
||||
assert check_cronjob_requirements() is False
|
||||
|
||||
@pytest.mark.parametrize("false_like_value", ["0", "false", "no", "off"])
|
||||
def test_rejects_false_like_interactive_env(self, monkeypatch, false_like_value):
|
||||
monkeypatch.setenv("HERMES_INTERACTIVE", false_like_value)
|
||||
monkeypatch.delenv("HERMES_GATEWAY_SESSION", raising=False)
|
||||
monkeypatch.delenv("HERMES_EXEC_ASK", raising=False)
|
||||
assert check_cronjob_requirements() is False
|
||||
|
||||
|
||||
class TestUnifiedCronjobTool:
|
||||
@pytest.fixture(autouse=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue