Orchestrata Ultimate › Tests › Reference › scripts › test_tools_import_closure

Tests reference — tests/scripts/test_tools_import_closure.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_tools_import_closure.py

source · 14 tests · 317 lines

Tests for scripts/tools_import_closure.py -- the computed import closure that

Kind Name Line Description
function test_eager_collector_follows_runtime_scopes_only 104
function test_all_scopes_collector_adds_function_and_type_checking_imports 125
function test_attribute_import_is_not_reported_unresolved 138 from lazy_pkg import Attr names lazy_pkg.Attr, which is no module.
function test_directory_without_init_is_reported_unresolved 144 The accidental namespace package codemod/persistence is the real case.
function test_missing_top_level_module_is_unresolved 158
function test_vendor_manifest_names_subtrees_files_and_other_roots 165
function test_pip_requirements_map_names_and_drop_local_natives 192
function test_entry_modules_of_the_deployed_tree_resolve 204
function test_daemon_entry_alone_has_a_one_module_eager_closure 213 Why the old deploy smoke passed: the daemon imports everything lazily.
function test_first_default_review_needs_six_packages_and_clean_resolution 219 Measured 2026-10-08: 103 eager modules once persistence/__init__ exists.
function test_cli_text_json_manifest_third_party_and_pip 245
function test_typing_attribute_form_of_type_checking_is_excluded 269
function test_check_flag_passes_on_the_real_tree_and_fails_on_a_gap 288
function test_script_runs_standalone_with_stdlib_only 308 The installer runs it where the repo venv is not guaranteed.