mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
test: accept kwargs in managed_uv fixture fakes
The runtime-repair change passes repair_observer= to update_managed_uv/ ensure_uv; the autouse fixture fakes had zero-arg signatures and raised TypeError through the mock. Sibling test file to the PR's own suite.
This commit is contained in:
parent
be633c1c33
commit
62ee34570e
1 changed files with 3 additions and 3 deletions
|
|
@ -25,13 +25,13 @@ def _patch_managed_uv(request):
|
|||
|
||||
# resolve_uv delegates to shutil.which("uv") so that test patches
|
||||
# on shutil.which flow through naturally.
|
||||
def _fake_resolve_uv():
|
||||
def _fake_resolve_uv(**kwargs):
|
||||
return shutil.which("uv")
|
||||
|
||||
def _fake_ensure_uv():
|
||||
def _fake_ensure_uv(**kwargs):
|
||||
return shutil.which("uv")
|
||||
|
||||
def _fake_update_managed_uv():
|
||||
def _fake_update_managed_uv(**kwargs):
|
||||
return None # never actually self-update in tests
|
||||
|
||||
with patch("hermes_cli.managed_uv.resolve_uv", side_effect=_fake_resolve_uv), \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue