mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
test: make interrupt-pool double's entries callable
Follow-up to the #58738 salvage: the pre-exhausted check now enumerates pool.entries() to find the failing key, so the MagicMock pool double must expose entries as a callable, not a bare list.
This commit is contained in:
parent
a9613d2e57
commit
129b9f9d33
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ def _make_entry(idx, **overrides):
|
|||
|
||||
def _make_pool(entries):
|
||||
pool = MagicMock()
|
||||
pool.entries = entries
|
||||
pool.entries = MagicMock(return_value=entries)
|
||||
pool.current.return_value = entries[0]
|
||||
# Must be set explicitly — MagicMock.provider returns a truthy
|
||||
# child mock, which would trigger the provider-mismatch guard.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue