mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-16 05:02:21 +02:00
16 lines
546 B
Python
16 lines
546 B
Python
from src.agent_loop import _native_tool_name_was_accepted
|
|
|
|
|
|
def test_native_resolution_audit_accepts_namespaced_equivalent():
|
|
accepted = {"mcp__email__list_emails"}
|
|
|
|
assert _native_tool_name_was_accepted("list_emails", accepted)
|
|
assert _native_tool_name_was_accepted("mcp__email__list_emails", accepted)
|
|
assert not _native_tool_name_was_accepted("read_email", accepted)
|
|
|
|
|
|
def test_native_resolution_audit_accepts_bare_equivalent():
|
|
assert _native_tool_name_was_accepted(
|
|
"mcp__email__send_email", {"send_email"}
|
|
)
|