Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies = [
]

[project.optional-dependencies]
dev = ["pytest", "pexpect"]
acp = [
"agent-client-protocol>=0.8,<1",
]
Expand Down
7 changes: 6 additions & 1 deletion tests/test_tui_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
from pathlib import Path
from typing import Any, Callable

import pexpect
import pytest

# Imported lazily: pexpect is only needed by these TUI end-to-end tests.
# A module-level `import pexpect` runs before the skipif mark below, so on an
# install without it pytest aborts collection of the whole suite instead of
# skipping this one file.
pexpect = pytest.importorskip("pexpect")


ROOT = Path(__file__).resolve().parents[1]
pytestmark = pytest.mark.skipif(shutil.which("script") is None, reason="`script` is required for TUI e2e tests")
Expand Down