← Về thư mục
tests/test_host_mcp_service.py
- FakeStore · class · L11-L68 — class FakeStore
- init · method · L12-L24 — def init( self, connectors: list[dict], *, settings: dict[str, str] | None = None, secrets: dict[str, str] | None = None, ) -> None
- get_connector · method · L26-L35 — def get_connector(self, connector_id)
- list_connectors · method · L37-L39 — def list_connectors(self)
- connector_env · method · L41-L46 — def connector_env(self, connector)
- get_setting · method · L48-L49 — def get_setting(self, key, default=None)
- get_secret_setting · method · L51-L52 — def get_secret_setting(self, key)
- set_secret_setting · method · L54-L56 — def set_secret_setting(self, key, value, *, scope)
- index_datapro_result · method · L58-L68 — def index_datapro_result(self, **kwargs)
- FakeManager · class · L71-L128 — class FakeManager
- init · method · L72-L92 — def init(self) -> None
- list_tools · method · L94-L98 — def list_tools(self, connector_id, config)
- call_tool · method · L100-L104 — def call_tool(self, connector_id, config, tool, args)
- list_resources · method · L106-L110 — def list_resources(self, connector_id, config, cursor)
- read_resource · method · L112-L116 — def read_resource(self, connector_id, config, uri)
- list_prompts · method · L118-L122 — def list_prompts(self, connector_id, config, cursor)
- get_prompt · method · L124-L128 — def get_prompt(self, connector_id, config, name, arguments)
- _connector · function · L131-L147 — def _connector( connector_id: str, name: str, , enabled: bool = True, *extra, ) -> dict
- test_connector_prefers_id_then_falls_back_to_exact_name · function · L150-L160 — def test_connector_prefers_id_then_falls_back_to_exact_name()
- test_list_projects_enabled_connectors_only_and_preserves_hard_key_errors · function · L163-L178 — def test_list_projects_enabled_connectors_only_and_preserves_hard_key_errors()
- test_tools_is_zero_spawn_for_a_disabled_connector · function · L181-L202 — def test_tools_is_zero_spawn_for_a_disabled_connector()
- manager_factory · function · L195-L197 — def manager_factory()
- test_tools_still_works_for_an_enabled_connector · function · L205-L219 — def test_tools_still_works_for_an_enabled_connector()
- test_protein_design_process_is_partitioned_and_confined_to_current_workspace · function · L222-L255 — def test_protein_design_process_is_partitioned_and_confined_to_current_workspace( tmp_path, )
- test_explicit_protein_design_root_is_not_overridden · function · L258-L278 — def test_explicit_protein_design_root_is_not_overridden(tmp_path)
- test_the_transport_deadline_outlives_the_backend_it_is_waiting_on · function · L281-L323 — def test_the_transport_deadline_outlives_the_backend_it_is_waiting_on(tmp_path)
- test_an_unconfined_connector_keeps_the_default_transport_deadline · function · L326-L335 — def test_an_unconfined_connector_keeps_the_default_transport_deadline(tmp_path)
- test_tools_preserves_not_found_soft_failure_exception_text_and_keyerror · function · L338-L357 — def test_tools_preserves_not_found_soft_failure_exception_text_and_keyerror()
- test_call_rejects_disabled_and_preserves_lookup_and_argument_contracts · function · L360-L395 — def test_call_rejects_disabled_and_preserves_lookup_and_argument_contracts()
- manager_factory · function · L367-L369 — def manager_factory()
- test_call_preserves_exception_text_and_command_keyerror_boundary · function · L398-L416 — def test_call_preserves_exception_text_and_command_keyerror_boundary()
- test_resource_and_prompt_discovery_preserve_cursor · function · L419-L437 — def test_resource_and_prompt_discovery_preserve_cursor()
- test_resource_and_prompt_discovery_are_zero_spawn_when_disabled · function · L440-L450 — def test_resource_and_prompt_discovery_are_zero_spawn_when_disabled()
- manager_factory · function · L445-L446 — def manager_factory()
- test_resource_read_and_prompt_get_require_enabled_connector_and_route_payloads · function · L453-L488 — def test_resource_read_and_prompt_get_require_enabled_connector_and_route_payloads()
- test_resource_and_prompt_failures_use_soft_error_contract · function · L491-L513 — def test_resource_and_prompt_failures_use_soft_error_contract()
- test_datapro_host_path_is_narrow_shared_and_redacts_an_echoed_key · function · L517-L610 — def test_datapro_host_path_is_narrow_shared_and_redacts_an_echoed_key()
- test_datapro_never_reuses_a_non_ark_model_key · function · L613-L632 — def test_datapro_never_reuses_a_non_ark_model_key()
- test_datapro_one_key_flow_reuses_and_updates_the_active_ark_key · function · L635-L652 — def test_datapro_one_key_flow_reuses_and_updates_the_active_ark_key()
- test_datapro_short_invalid_key_preserves_host_4011_protocol_shape · function · L656-L689 — def test_datapro_short_invalid_key_preserves_host_4011_protocol_shape()
- test_datapro_availability_requires_strict_structured_integer_zero · function · L704-L719 — def test_datapro_availability_requires_strict_structured_integer_zero(code, available)