Skip to content

Tests fail with ModuleNotFoundError: No module named 'click' on fresh pdm install #1441

Description

@splch

Describe the bug

end_to_end_tests/functional_tests/helpers.py does from click.testing import Result, but click isn't declared in pyproject.toml. It used to come in transitively via typer. Typer 0.26.0 vendored click and dropped the dependency, so since #1440 raised the typer cap to <0.27, fresh resolutions don't install click and pytest fails at collection.

main is green only because the workflow's restore-keys cache fallback reuses older .venvs that still have click. Any PR that changes the pdm.lock hash will surface this.

OpenAPI Spec File

N/A — CI / dev-environment bug, not a generator bug.

Additional context

Fix: add click to dev deps in pyproject.toml and pdm lock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions