File: test_shell.py

package info (click to toggle)
tmuxp 1.55.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,688 kB
  • sloc: python: 8,049; makefile: 202; sh: 14
file content (19 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Tests for tmuxp shell module."""

from __future__ import annotations

from tmuxp import shell


def test_detect_best_shell() -> None:
    """detect_best_shell() returns a a string of the best shell."""
    result = shell.detect_best_shell()
    assert isinstance(result, str)


def test_shell_detect() -> None:
    """Tests shell detection functions."""
    assert isinstance(shell.has_bpython(), bool)
    assert isinstance(shell.has_ipython(), bool)
    assert isinstance(shell.has_ptpython(), bool)
    assert isinstance(shell.has_ptipython(), bool)