fastapi / typer

Typer, build great CLIs. Easy to code. Based on Python type hints.
https://typer.tiangolo.com/
MIT License
15.66k stars 666 forks source link

✅ Only run completion installation tests when the env var `_TYPER_RUN_INSTALL_COMPLETION_TESTS` is set #995

Open svlandeg opened 1 month ago

svlandeg commented 1 month ago

As discussed in https://github.com/fastapi/typer/pull/866#issuecomment-2316421622, introducing a specific env var _TYPER_RUN_INSTALL_COMPLETION_TESTS that needs to be set before --install-completion tests are run. This env var is set for tests on the CI, but would usually not be set when users run tests locally. This is to ensure no side effects or failing tests happen locally. Fixes #413.

Thanks to @rokbot for raising this issue in #866!