← Về thư mục
tests/test_skills.py
- test_discovers_example_stats · function · L12-L17 — def test_discovers_example_stats()
- test_frontmatter_parsed · function · L20-L26 — def test_frontmatter_parsed()
- test_system_context_is_progressive · function · L29-L43 — def test_system_context_is_progressive()
- test_bootstrap_code_freezes_skill_paths_without_exposing_whole_roots · function · L46-L50 — def test_bootstrap_code_freezes_skill_paths_without_exposing_whole_roots()
- test_sidecar_functions · function · L53-L72 — def test_sidecar_functions(monkeypatch): # skills dir is importable in-process for this assertion
- test_sidecar_raises_on_empty · function · L75-L88 — def test_sidecar_raises_on_empty(monkeypatch)
- test_search_matches_by_keyword · function · L94-L100 — def test_search_matches_by_keyword()
- test_search_no_match_returns_empty · function · L103-L106 — def test_search_no_match_returns_empty(): # The pinned bioSkills corpus is broad enough to mention ordinary physics # vocabulary in modeling recipes, so use deliberately nonexistent tokens.
- _write_search_corpus · function · L109-L116 — def _write_search_corpus(root: Path, skills: dict[str, tuple[str, str]]) -> None
- test_search_weights_rare_query_tokens_over_ubiquitous_ones · function · L119-L160 — def test_search_weights_rare_query_tokens_over_ubiquitous_ones(tmp_path)
- test_search_breaks_score_ties_deterministically_curated_first · function · L163-L202 — def test_search_breaks_score_ties_deterministically_curated_first(tmp_path)
- ranked · function · L194-L198 — def ranked() -> list[str]
- test_search_ignores_single_character_query_tokens · function · L205-L216 — def test_search_ignores_single_character_query_tokens()
- test_search_does_not_rank_on_ubiquitous_bundled_tokens · function · L219-L242 — def test_search_does_not_rank_on_ubiquitous_bundled_tokens()
- test_sidecar_gate_ok_for_example · function · L245-L247 — def test_sidecar_gate_ok_for_example()
- test_skills_crud_roundtrip · function · L253-L333 — def test_skills_crud_roundtrip(tmp_path, monkeypatch)
- test_skills_read_only_origin_blocked · function · L336-L372 — def test_skills_read_only_origin_blocked(tmp_path, monkeypatch)
- test_declared_name_collision_keeps_bundled_skill_authoritative · function · L375-L401 — def test_declared_name_collision_keeps_bundled_skill_authoritative(tmp_path)
- test_folded_description_not_literal_gt · function · L407-L423 — def test_folded_description_not_literal_gt()
- test_literal_description_preserves_newlines · function · L426-L430 — def test_literal_description_preserves_newlines()
- test_folded_chomping_indicator_accepted · function · L433-L435 — def test_folded_chomping_indicator_accepted()
- test_quoted_description_strips_quotes_keeps_hash · function · L438-L442 — def test_quoted_description_strips_quotes_keeps_hash()
- test_inline_comment_stripped_on_unquoted_scalar · function · L445-L447 — def test_inline_comment_stripped_on_unquoted_scalar()
- test_no_bundled_skill_summary_is_literal_gt · function · L450-L456 — def test_no_bundled_skill_summary_is_literal_gt()
- test_all_import_hints_are_valid_python · function · L462-L474 — def test_all_import_hints_are_valid_python()
- test_hyphenated_skill_uses_importlib_hint · function · L477-L495 — def test_hyphenated_skill_uses_importlib_hint(tmp_path, monkeypatch)
- test_identifier_skill_uses_import_star_hint · function · L498-L500 — def test_identifier_skill_uses_import_star_hint()
- test_bioskills_collection_is_discovered_but_prompt_is_compact · function · L503-L519 — def test_bioskills_collection_is_discovered_but_prompt_is_compact()
- test_bioskills_exact_load_search_and_scoped_prompt · function · L522-L535 — def test_bioskills_exact_load_search_and_scoped_prompt()
- test_a_wide_search_loses_detail_rather_than_hits · function · L538-L613 — def test_a_wide_search_loses_detail_rather_than_hits()
- test_a_specialist_still_retrieves_its_own_skills · function · L616-L648 — def test_a_specialist_still_retrieves_its_own_skills()
- test_a_curated_skill_is_still_retrievable_by_its_own_query · function · L651-L673 — def test_a_curated_skill_is_still_retrievable_by_its_own_query()
- test_load_refuses_a_near_miss_name_rather_than_answering_with_another_skill · function · L676-L707 — def test_load_refuses_a_near_miss_name_rather_than_answering_with_another_skill()
- test_a_collection_skill_resolves_by_directory_and_by_declared_name · function · L710-L741 — def test_a_collection_skill_resolves_by_directory_and_by_declared_name()
- test_collection_identity_and_member_directory_collisions_fail_loudly · function · L744-L873 — def test_collection_identity_and_member_directory_collisions_fail_loudly(tmp_path)
- add_collection · function · L749-L769 — def add_collection( root: Path, directory: str, identifier: str, member: str, declared_name: str, ) -> None
- test_collection_root_shadow_fails_closed_after_real_discovery · function · L876-L965 — def test_collection_root_shadow_fails_closed_after_real_discovery(tmp_path)
- test_collection_root_cannot_be_replaced_by_executable_user_package · function · L968-L1006 — def test_collection_root_cannot_be_replaced_by_executable_user_package(tmp_path)
- test_frozen_skill_path_never_executes_untracked_package_initializers · function · L1009-L1043 — def test_frozen_skill_path_never_executes_untracked_package_initializers(tmp_path)
- test_removed_sidecar_cannot_fall_back_to_a_namespace_package · function · L1046-L1080 — def test_removed_sidecar_cannot_fall_back_to_a_namespace_package(tmp_path)
- test_bootstrap_does_not_expose_skipped_or_unknown_writable_directories · function · L1083-L1125 — def test_bootstrap_does_not_expose_skipped_or_unknown_writable_directories(tmp_path)
- test_catalog_qualified_imports_use_the_same_sidecar_gate · function · L1128-L1211 — def test_catalog_qualified_imports_use_the_same_sidecar_gate(tmp_path)
- test_the_pinned_collection_still_matches_its_manifest · function · L1214-L1241 — def test_the_pinned_collection_still_matches_its_manifest()