Orchestrata Ultimate › Tests › Reference › test_orchestrata_ast_scope
Tests reference — tests/test_orchestrata_ast_scope.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_orchestrata_ast_scope.py
source · 17 tests · 219 lines
Tests for what counts as OUR source, and for narrowing back to the package.
Covers: tools.ast_pipeline
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestNestedDistributionsAreNotOurSource |
43 | A directory carrying its own build metadata is somebody else's project. |
| method | TestNestedDistributionsAreNotOurSource.test_any_build_marker_makes_a_directory_foreign |
47 | |
| method | TestNestedDistributionsAreNotOurSource.test_a_plain_package_is_ours |
56 | |
| method | TestNestedDistributionsAreNotOurSource.test_the_walk_skips_a_vendored_subtree_entirely |
63 | |
| method | TestNestedDistributionsAreNotOurSource.test_the_root_itself_is_never_pruned |
76 | The repo root carries a pyproject.toml. Pruning on the root would |
| method | TestNestedDistributionsAreNotOurSource.test_the_walk_is_ordered |
84 | os.walk yields filesystem order; the snapshot must not depend on it. |
| method | TestNestedDistributionsAreNotOurSource.test_the_live_repo_has_no_vendored_module |
93 | The whole point, asserted against the real tree. |
| class | TestNarrowingToThePackage |
123 | |
| method | TestNarrowingToThePackage.test_extra_trees_are_named_by_their_directory |
124 | |
| method | TestNarrowingToThePackage.test_a_module_of_the_primary_tree_is_primary |
127 | |
| method | TestNarrowingToThePackage.test_only_primary_modules_survive |
133 | |
| method | TestNarrowingToThePackage.test_both_graphs_are_narrowed |
138 | |
| method | TestNarrowingToThePackage.test_file_meta_is_narrowed_too |
144 | Left wide, a narrowed snapshot still answered questions about |
| method | TestNarrowingToThePackage.test_the_result_declares_no_extra_roots |
149 | Narrowing twice must be the same as narrowing once. |
| method | TestNarrowingToThePackage.test_unrelated_keys_are_carried_through |
156 | |
| method | TestNarrowingToThePackage.test_a_snapshot_with_no_extra_roots_is_returned_unchanged |
159 | |
| method | TestNarrowingToThePackage.test_the_live_snapshot_narrows_to_the_package |
164 | |
| class | TestTheQueryCorpusCoversTheSnapshot |
191 | CLAUDE.md routes ALL reading of this repo's Python through the toolkit. |
| method | TestTheQueryCorpusCoversTheSnapshot.test_every_snapshot_tree_is_queryable_by_default |
200 | |
| method | TestTheQueryCorpusCoversTheSnapshot.test_the_sibling_first_party_packages_are_queryable |
211 | Neither is in the snapshot, and the toolkit still has to answer for |