Skip to content
Merged
Changes from 1 commit
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
6 changes: 5 additions & 1 deletion tests/test_pane.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for libtmux Pane object."""
import logging
import shutil

from libtmux.session import Session

Expand Down Expand Up @@ -66,10 +67,13 @@ def test_set_width(session: Session) -> None:


def test_capture_pane(session: Session) -> None:
env = shutil.which("env")
assert env is not None, "Cannot find usable `env` in PATH."

session.new_window(
attach=True,
window_name="capture_pane",
window_shell='env -i PS1="$ " /usr/bin/env bash --norc --noprofile',
window_shell=f"{env} PS1='$ ' bash --norc --noprofile",
)
pane = session.attached_window.attached_pane
assert pane is not None
Expand Down