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 9c5c543 point at it.
📝 Update release notesgithub-actions[bot]before adoption9c5c543
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📝 Update release notesgithub-actions[bot]before adoption9c5c543
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()📝 Update release notesgithub-actions[bot]before adoption9c5c543
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"📝 Update release notesgithub-actions[bot]before adoption9c5c543
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)