Skip to content

Commit 681e37f

Browse files
committed
adding test for debug-info command
1 parent 36d5e9f commit 681e37f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/test_cli.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from tmuxp import cli, config
1717
from tmuxp.cli import (
1818
command_ls,
19+
command_debug_info,
1920
get_config_dir,
2021
is_pure_name,
2122
load_workspace,
@@ -932,3 +933,22 @@ def test_ls_cli(monkeypatch, tmpdir):
932933
runner = CliRunner()
933934
cli_output = runner.invoke(command_ls).output
934935
assert cli_output == '\n'.join(stems) + '\n'
936+
937+
938+
def test_debug_info_cli():
939+
runner = CliRunner()
940+
cli_output = runner.invoke(command_debug_info).output
941+
assert 'environment' in cli_output
942+
assert 'python version' in cli_output
943+
assert 'system PATH' in cli_output
944+
assert 'tmux version' in cli_output
945+
assert 'libtmux version' in cli_output
946+
assert 'tmuxp version' in cli_output
947+
assert 'tmux path' in cli_output
948+
assert 'tmuxp path' in cli_output
949+
assert 'shell' in cli_output
950+
assert 'tmux session' in cli_output
951+
assert 'tmux windows' in cli_output
952+
assert 'tmux panes' in cli_output
953+
assert 'tmux global options' in cli_output
954+
assert 'tmux window options' in cli_output

0 commit comments

Comments
 (0)