← Về thư mục
tests/test_cli_catalog_posture.py
- _cfg · function · L28-L33 — def _cfg(tmp_path) -> Config
- _declared_tools · function · L36-L86 — def _declared_tools(tmp_path, monkeypatch, *, prepare=None) -> set[str]
- finalize_chat · function · L44-L69 — def finalize_chat(messages, cfg, **kwargs)
- test_default_headless_posture_hides_tools_nothing_could_approve · function · L89-L98 — def test_default_headless_posture_hides_tools_nothing_could_approve( tmp_path, monkeypatch )
- test_a_standing_allow_rule_keeps_the_tool · function · L101-L113 — def test_a_standing_allow_rule_keeps_the_tool(tmp_path, monkeypatch)
- allow · function · L102-L109 — def allow(agent)
- test_explicit_unattended_allow_keeps_every_tool · function · L116-L119 — def test_explicit_unattended_allow_keeps_every_tool(tmp_path, monkeypatch)
- test_an_attached_approval_channel_keeps_every_tool · function · L122-L133 — def test_an_attached_approval_channel_keeps_every_tool(tmp_path, monkeypatch)
- attach · function · L127-L130 — def attach(agent)
- test_the_guardian_hides_what_it_never_approves · function · L136-L147 — def test_the_guardian_hides_what_it_never_approves(tmp_path, monkeypatch)
- test_a_deny_for_every_target_hides_the_tool · function · L150-L157 — def test_a_deny_for_every_target_hides_the_tool(tmp_path, monkeypatch)
- deny · function · L151-L154 — def deny(agent)
- test_a_hidden_tool_called_anyway_is_still_refused_and_audited · function · L160-L192 — def test_a_hidden_tool_called_anyway_is_still_refused_and_audited(tmp_path)
- test_the_documented_hidden_set_is_the_whole_default_posture_effect · function · L211-L257 — def test_the_documented_hidden_set_is_the_whole_default_posture_effect( tmp_path, monkeypatch )
- _tool_call · function · L260-L270 — def _tool_call(name: str, arguments: dict, call_id: str) -> dict
- _search_then_finalize · function · L273-L327 — def _search_then_finalize(tmp_path, monkeypatch, query: str)
- chat · function · L284-L311 — def chat(messages, cfg, **kwargs)
- test_search_capabilities_never_advertises_a_tool_the_projection_hides · function · L330-L352 — def test_search_capabilities_never_advertises_a_tool_the_projection_hides( tmp_path, monkeypatch )
- test_search_capabilities_lists_everything_when_the_posture_can_approve · function · L355-L365 — def test_search_capabilities_lists_everything_when_the_posture_can_approve( tmp_path, monkeypatch )
- test_an_unfiltered_catalog_search_is_unchanged · function · L368-L380 — def test_an_unfiltered_catalog_search_is_unchanged()