mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00:00
test: skip atropos-dependent tests when atroposlib not installed
Guard all test files that import from environments/ or atroposlib with try/except + pytest.skip(allow_module_level=True) so they gracefully skip instead of crashing when deps aren't available.
This commit is contained in:
parent
366de72a38
commit
0f53275169
3 changed files with 13 additions and 4 deletions
|
|
@ -33,7 +33,10 @@ _repo_root = Path(__file__).resolve().parent.parent
|
|||
if str(_repo_root) not in sys.path:
|
||||
sys.path.insert(0, str(_repo_root))
|
||||
|
||||
from environments.agent_loop import AgentResult, HermesAgentLoop
|
||||
try:
|
||||
from environments.agent_loop import AgentResult, HermesAgentLoop
|
||||
except ImportError:
|
||||
pytest.skip("atroposlib not installed", allow_module_level=True)
|
||||
|
||||
|
||||
# =========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue