utils.py
This file
Path
tests/utils.py
23 lines · 634 bytes · Python
Last changed by
♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f
History of this fileTake it
The walk stopped after 200 commits: lines older than a671e9b point at it.
⬆ Bump ruff from 0.11.13 to 0.12.9 (#1276)dependabot[bot]before adoptiona671e9b
lines 1–4why, one step back1import sys2from os import getenv34import pytest♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f
line 5why, one step back5from typer._completion_shared import _get_shell_name⬆ Bump ruff from 0.11.13 to 0.12.9 (#1276)dependabot[bot]before adoptiona671e9b
lines 6–14why, one step back67needs_py310 = pytest.mark.skipif(8 sys.version_info < (3, 10), reason="requires python3.10+"9)1011needs_linux = pytest.mark.skipif(12 not sys.platform.startswith("linux"), reason="Test requires Linux"13)14♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f
line 15why, one step back15shell = _get_shell_name()⬆ Bump ruff from 0.11.13 to 0.12.9 (#1276)dependabot[bot]before adoptiona671e9b
line 16why, one step back16needs_bash = pytest.mark.skipif(♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f
line 17why, one step back17 shell is None or "bash" not in shell, reason="Test requires Bash"⬆ Bump ruff from 0.11.13 to 0.12.9 (#1276)dependabot[bot]before adoptiona671e9b
lines 18–23why, one step back18)1920requires_completion_permission = pytest.mark.skipif(21 not getenv("_TYPER_RUN_INSTALL_COMPLETION_TESTS", False),22 reason="Test requires permission to run completion installation tests",23)