When running tests without hermes-agent, 24 tests that depend on cron, skills, approval, or agent backend modules now skip cleanly instead of failing with 500 errors. Detection: conftest.py checks if the agent dir exists and if cron.jobs and tools.skills_tool are importable. When not available, an explicit list of 24 test names is auto-marked with pytest.mark.skip. Result: - Without agent: 400 passed, 24 skipped, 0 failed - With agent: all 424 tests run normally (skip logic is a no-op) A warning banner prints at collection time: "hermes-agent not found — 24 agent-dependent tests will be skipped" Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 KiB
12 KiB