Orchestrata Ultimate › Tests › Reference › test_ast_query
Tests reference — tests/test_ast_query.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_ast_query.py
source · 56 tests · 883 lines
Behavioral tests for orchestrata_ultimate.tools.ast_query.ASTQuery.
Covers: tools.ast_query
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_summary |
212 | |
| function | test_module_summary |
221 | |
| function | test_index_stats |
231 | |
| function | test_find_module |
241 | |
| function | test_search_classes |
250 | |
| function | test_all_classes |
262 | |
| function | test_classes_by_module |
269 | |
| function | test_largest_classes |
277 | |
| function | test_most_connected_classes |
284 | |
| function | test_stubs |
292 | |
| function | test_abstract_classes |
302 | |
| function | test_pydantic_models |
306 | |
| function | test_dataclasses |
310 | |
| function | test_protocols |
317 | |
| function | test_enums |
321 | |
| function | test_interfaces |
325 | |
| function | test_exported_classes |
330 | |
| function | test_inheritance_tree |
337 | |
| function | test_module_deps |
348 | |
| function | test_coverage_by_tier_without_compare |
357 | |
| function | test_unmapped_classes_without_compare |
362 | |
| function | test_find_project_root_pyproject_fallback |
369 | A directory with only pyproject.toml (no plans/ast-ultimate.json) is |
| function | test_find_project_root_returns_none_when_no_markers |
382 | Neither marker present anywhere up the tree -> None. |
| function | test_resolve_path_absolute_path_returned_unchanged |
395 | |
| function | test_resolve_path_falls_back_to_first_candidate_when_nothing_exists |
402 | |
| function | test_find_class_exact_qualified_name |
413 | |
| function | test_find_class_short_name |
419 | |
| function | test_find_class_fuzzy_unique_substring_match |
426 | |
| function | test_find_class_ambiguous_substring_returns_none |
434 | |
| function | test_find_class_no_match_returns_none |
439 | |
| function | test_search_methods_case_insensitive_default |
446 | |
| function | test_search_methods_case_sensitive |
452 | |
| function | test_search_methods_no_match |
458 | |
| function | test_type_aliases |
465 | |
| function | test_importers_of |
472 | |
| function | test_compare_path_missing_file_keeps_compare_data_none |
481 | |
| function | test_stubs_with_compare_data |
490 | |
| function | test_coverage_by_tier_with_compare_data |
507 | |
| function | test_unmapped_classes_with_compare_data |
520 | |
| function | test_method_diff_matches_ultimate_name |
528 | |
| function | test_method_diff_matches_orchestrata_name |
541 | |
| function | test_method_diff_no_match_returns_none |
548 | |
| function | test_method_diff_without_compare_data_returns_none |
552 | |
| function | test_coverage_by_tier_matches_real_deep_compare_artifact |
584 | |
| function | test_unmapped_classes_matches_real_deep_compare_artifact |
599 | |
| function | test_unmapped_classes_flattens_orchestrata_by_package |
622 | |
| function | test_method_diff_matches_real_deep_compare_artifact |
647 | |
| function | test_method_diff_matches_real_artifact_by_orchestrata_name |
674 | |
| function | test_stubs_with_compare_data_methods_as_plain_list |
692 | |
| function | test_staleness_none_when_no_root_path |
750 | |
| function | test_staleness_none_when_root_path_missing |
767 | |
| function | test_staleness_none_when_source_not_newer |
775 | |
| function | test_staleness_detects_newer_source_files |
793 | |
| function | test_staleness_counts_multiple_stale_files |
822 | |
| function | test_staleness_returns_none_when_snapshot_file_disappears |
845 | |
| function | test_staleness_skips_source_file_that_disappears_mid_scan |
862 |