Orchestrata Ultimate › Tests › Reference › scripts › test_check_deps

Tests reference — tests/scripts/test_check_deps.py

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

Prose pending.

tests/scripts/test_check_deps.py

source · 5 tests · 141 lines

Tests for the check-deps feature of scripts/serialize_codebase_ast.py.

Kind Name Line Description
function test_clean_project_reports_ok 46 A project whose only third-party import is declared is reported clean.
function test_installed_but_undeclared_is_flagged 62 An import that maps to an INSTALLED dist absent from pyproject is a gap.
function test_missing_lazy_import_is_flagged_as_lazy 80 A function-local import of an uninstalled, undeclared package is caught
function test_local_sibling_import_is_not_flagged 103 A bare import of a sibling module (a local file) is not third-party.
function test_declared_in_optional_extra_clears_uninstalled_import 124 A package declared only in an optional extra (and not installed) is not a