Files
hermes-agent/tests/hermes_cli/test_npm_engine.py
2026-10-10 15:20:14 +02:00

16 lines
815 B
Python

"""The frozen npm retry import hands off, never provisioning in the old parent."""
import pytest
from hermes_cli.npm_engine import maybe_repair_npm_engine
from tests.compat.old_updater_support import (
fresh_child as fresh_child, # noqa: PLC0414 -- the self-alias is load-bearing: it suppresses F811 for the pytest fixture parameter shadowing this import
no_external_work as no_external_work, # noqa: PLC0414 -- the self-alias is load-bearing: it suppresses F811 for the pytest fixture parameter shadowing this import
)
@pytest.mark.parametrize("quiet,output", [(True, "EBADENGINE"), (False, "unrelated failure")])
def test_retired_retry_handoffs_without_provisioning(fresh_child, quiet, output):
with fresh_child.exits():
maybe_repair_npm_engine("/caller-owned/npm", output, quiet=quiet)