← Về thư mục
tests/test_config.py
- test_is_placeholder_api_key_matches_template_stubs · function · L22-L30 — def test_is_placeholder_api_key_matches_template_stubs()
- test_post_init_drops_placeholder_from_env · function · L33-L36 — def test_post_init_drops_placeholder_from_env(monkeypatch)
- test_post_init_drops_placeholder_passed_explicitly · function · L39-L42 — def test_post_init_drops_placeholder_passed_explicitly(monkeypatch)
- test_placeholder_specific_env_falls_through_to_generic · function · L45-L50 — def test_placeholder_specific_env_falls_through_to_generic(monkeypatch)
- test_placeholder_explicit_key_falls_through_to_env · function · L53-L59 — def test_placeholder_explicit_key_falls_through_to_env(monkeypatch)
- test_notebook_repl_flag_defaults_off_and_reads_env · function · L62-L74 — def test_notebook_repl_flag_defaults_off_and_reads_env(monkeypatch): # the in-Notebook developer REPL is read-only (off) by default
- test_team_mode_defaults_off_and_reads_env · function · L77-L85 — def test_team_mode_defaults_off_and_reads_env(monkeypatch): # INV-1: team mode is opt-in; unset env == single-user behavior
- test_trusted_proxy_origins_are_exact_and_normalized · function · L88-L99 — def test_trusted_proxy_origins_are_exact_and_normalized(monkeypatch)
- test_trusted_proxy_origins_reject_non_origins · function · L116-L119 — def test_trusted_proxy_origins_reject_non_origins(monkeypatch, origin)
- _clear_auto_mode_environment · function · L156-L164 — def _clear_auto_mode_environment(monkeypatch)
- test_stage_roadmap_flags_default_off · function · L167-L173 — def test_stage_roadmap_flags_default_off(monkeypatch)
- test_each_stage_roadmap_flag_has_an_exact_opt_in · function · L177-L187 — def test_each_stage_roadmap_flag_has_an_exact_opt_in(monkeypatch, field_name, env_name)
- test_roadmap_flag_typo_is_rejected_instead_of_enabling · function · L190-L194 — def test_roadmap_flag_typo_is_rejected_instead_of_enabling(monkeypatch)
- test_direct_roadmap_flag_value_must_be_a_real_bool · function · L197-L199 — def test_direct_roadmap_flag_value_must_be_a_real_bool()
- test_auto_mode_product_defaults_are_inert · function · L202-L212 — def test_auto_mode_product_defaults_are_inert(monkeypatch)
- test_auto_mode_deployment_explicitness_distinguishes_unset_from_off · function · L215-L225 — def test_auto_mode_deployment_explicitness_distinguishes_unset_from_off(monkeypatch)
- test_auto_mode_deployment_explicitness_is_captured_once · function · L228-L236 — def test_auto_mode_deployment_explicitness_is_captured_once(monkeypatch)
- test_auto_mode_deployment_explicit_metadata_is_closed · function · L239-L244 — def test_auto_mode_deployment_explicit_metadata_is_closed()
- test_auto_mode_preset_is_one_noncontradictory_bundle · function · L248-L260 — def test_auto_mode_preset_is_one_noncontradictory_bundle(monkeypatch, preset)
- test_independent_submodes_remain_available_when_preset_is_off · function · L263-L273 — def test_independent_submodes_remain_available_when_preset_is_off(monkeypatch)
- test_invalid_auto_mode_configuration_is_rejected · function · L284-L289 — def test_invalid_auto_mode_configuration_is_rejected(monkeypatch, name, value)
- test_auto_mode_choices_are_closed_and_normalized · function · L292-L301 — def test_auto_mode_choices_are_closed_and_normalized()
- test_explicit_blank_strict_configuration_is_rejected · function · L314-L320 — def test_explicit_blank_strict_configuration_is_rejected(monkeypatch, name)
- test_auto_mode_budget_defaults_freeze_the_master_plan · function · L323-L340 — def test_auto_mode_budget_defaults_freeze_the_master_plan(monkeypatch)
- test_auto_mode_budget_environment_can_only_tighten · function · L343-L353 — def test_auto_mode_budget_environment_can_only_tighten(monkeypatch)
- test_auto_mode_budget_cannot_be_malformed_or_loosened · function · L367-L372 — def test_auto_mode_budget_cannot_be_malformed_or_loosened(monkeypatch, name, value)
- test_auto_mode_guardian_window_size_is_fixed_not_ambiguously_tightened · function · L375-L377 — def test_auto_mode_guardian_window_size_is_fixed_not_ambiguously_tightened()
- test_auto_mode_selection_precedence_and_migration_are_frozen · function · L380-L391 — def test_auto_mode_selection_precedence_and_migration_are_frozen()
- test_landed_stages_consume_only_their_roadmap_flags_without_changing_legacy_config · function · L394-L498 — def test_landed_stages_consume_only_their_roadmap_flags_without_changing_legacy_config( monkeypatch, )
- test_data_roots_parse_colon_separated · function · L501-L510 — def test_data_roots_parse_colon_separated(monkeypatch, tmp_path)
- test_placeholder_env_does_not_shadow_native_key · function · L513-L520 — def test_placeholder_env_does_not_shadow_native_key(monkeypatch): # a .env copied verbatim from .env.example must not mask a real key the # user already exported for other tools — the placeholder is dropped # BEFORE the provider-native fallback (OPENAI_API_KEY & co) runs