Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

730 B
Raw Blame
"""The pipeline package resolves every public name without loading it eagerly."""

from __future__ import annotations

import subprocess
import sys

import repowise.core.pipeline as pipeline


def test_every_exported_name_resolves() -> None:
    for name in pipeline.__all__:
        assert getattr(pipeline, name) is not None, name


def test_the_phase_timer_does_not_load_the_generation_stack() -> None:
    probe = (
        "import sys; from repowise.core.pipeline import PhaseTimings, timed; "
        "print('repowise.core.pipeline.orchestrator' in sys.modules)"
    )
    out = subprocess.run(
        [sys.executable, "-c", probe], capture_output=True, text=True, check=True
    ).stdout.strip()
    assert out == "False"