← Về thư mục
tests/test_onboarding.py
- MemorySettings · class · L29-L56 — class MemorySettings
- init · method · L39-L40 — def init(self) -> None
- get_setting · method · L42-L43 — def get_setting(self, key: str)
- set_setting · method · L45-L46 — def set_setting(self, key: str, value: str) -> None
- get_secret_setting · method · L48-L49 — def get_secret_setting(self, key: str) -> str
- set_secret_setting · method · L51-L53 — def set_secret_setting(self, key: str, value: str, *, scope: str) -> str
- close · method · L55-L56 — def close(self) -> None
- service · function · L59-L70 — def service(tmp_path: Path) -> tuple[OnboardingService, MemorySettings]
- test_configure_uses_provider_defaults_and_returns_no_secret · function · L73-L85 — def test_configure_uses_provider_defaults_and_returns_no_secret(tmp_path)
- test_configure_rejects_invalid_or_secret_bearing_inputs · function · L112-L123 — def test_configure_rejects_invalid_or_secret_bearing_inputs(tmp_path, kwargs, message)
- test_invalid_api_key_does_not_partially_write_model_settings · function · L126-L132 — def test_invalid_api_key_does_not_partially_write_model_settings(tmp_path)
- test_switching_provider_does_not_reuse_previous_provider_defaults · function · L135-L150 — def test_switching_provider_does_not_reuse_previous_provider_defaults(tmp_path)
- test_switching_provider_drops_the_previous_provider_key · function · L153-L168 — def test_switching_provider_drops_the_previous_provider_key(tmp_path, monkeypatch)
- test_clear_api_key_is_explicit · function · L171-L180 — def test_clear_api_key_is_explicit(tmp_path)
- test_configure_preserves_stored_model_and_base_url_when_only_touching_key · function · L183-L198 — def test_configure_preserves_stored_model_and_base_url_when_only_touching_key(tmp_path)
- test_complete_skip_does_not_require_a_provider_or_key · function · L201-L206 — def test_complete_skip_does_not_require_a_provider_or_key(tmp_path)
- test_web_status_omits_data_dir_and_the_key · function · L209-L218 — def test_web_status_omits_data_dir_and_the_key(tmp_path)
- test_as_dict_projects_the_key_flag_as_a_real_boolean · function · L221-L246 — def test_as_dict_projects_the_key_flag_as_a_real_boolean()
- test_cmd_init_json_stdout_is_a_secret_free_projection · function · L249-L287 — def test_cmd_init_json_stdout_is_a_secret_free_projection( tmp_path, monkeypatch, capsys )