diff --git a/tests/test_completion/test_completion_path.py b/tests/test_completion/test_completion_path.py index f7bae79615..9b9171199f 100644 --- a/tests/test_completion/test_completion_path.py +++ b/tests/test_completion/test_completion_path.py @@ -28,3 +28,18 @@ def test_completion_path_bash(): }, ) assert result.returncode == 0 + + +def test_completion_path_zsh(): + result = subprocess.run( + [sys.executable, "-m", "coverage", "run", mod.__file__, " "], + capture_output=True, + encoding="utf-8", + env={ + **os.environ, + "_PATH_EXAMPLE.PY_COMPLETE": "complete_zsh", + "_TYPER_COMPLETE_ARGS": "path_example.py ", + }, + ) + assert result.returncode == 0 + assert "_files" in result.stdout