Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 4c21293 point at it.

📝 Update release notesgithub-actions[bot]before adoption4c21293

lines 1–4why, one step back
1import sys
2from os import getenv34import pytest

♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f

line 5why, one step back
5from typer._completion_shared import _get_shell_name

📝 Update release notesgithub-actions[bot]before adoption4c21293

lines 6–14why, one step back
6
7needs_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 back
15shell = _get_shell_name()

📝 Update release notesgithub-actions[bot]before adoption4c21293

line 16why, one step back
16needs_bash = pytest.mark.skipif(

♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f

line 17why, one step back
17 shell is None or "bash" not in shell, reason="Test requires Bash"

📝 Update release notesgithub-actions[bot]before adoption4c21293

lines 18–23why, one step back
18)
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)