Skip to content

Commit 926899c

Browse files
committed
adding test for debug-info command
1 parent 324b537 commit 926899c

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, exc
1717
from tmuxp.cli import (
1818
command_ls,
19+
command_debug_info,
1920
get_config_dir,
2021
is_pure_name,
2122
load_workspace,
@@ -953,3 +954,22 @@ def test_ls_cli(monkeypatch, tmpdir):
953954
runner = CliRunner()
954955
cli_output = runner.invoke(command_ls).output
955956
assert cli_output == '\n'.join(stems) + '\n'
957+
958+
959+
def test_debug_info_cli():
960+
runner = CliRunner()
961+
cli_output = runner.invoke(command_debug_info).output
962+
assert 'environment' in cli_output
963+
assert 'python version' in cli_output
964+
assert 'system PATH' in cli_output
965+
assert 'tmux version' in cli_output
966+
assert 'libtmux version' in cli_output
967+
assert 'tmuxp version' in cli_output
968+
assert 'tmux path' in cli_output
969+
assert 'tmuxp path' in cli_output
970+
assert 'shell' in cli_output
971+
assert 'tmux session' in cli_output
972+
assert 'tmux windows' in cli_output
973+
assert 'tmux panes' in cli_output
974+
assert 'tmux global options' in cli_output
975+
assert 'tmux window options' in cli_output

0 commit comments

Comments
 (0)