Skip to content

Commit 3c25058

Browse files
committed
running black over changes
trying monkey patch in debug-info test testing parts of the debug-info command test to narrow down problem removing os specifics from debug-info to see if the python ones come through python internals only testing adding SHELL back in adding SHELL to debug_info_test via monkeypatch adding python version back in Adding os variables back in
1 parent 1acb58c commit 3c25058

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

tests/test_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,9 @@ def test_ls_cli(monkeypatch, tmpdir):
956956
assert cli_output == '\n'.join(stems) + '\n'
957957

958958

959-
def test_debug_info_cli():
959+
def test_debug_info_cli(monkeypatch, tmpdir):
960+
monkeypatch.setenv('SHELL', '/bin/bash')
961+
960962
runner = CliRunner()
961963
cli_output = runner.invoke(command_debug_info).output
962964
assert 'environment' in cli_output

tmuxp/cli.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
)
2525
from libtmux.exc import TmuxCommandNotFound
2626
from libtmux.server import Server
27+
2728
from libtmux import __version__ as libtmux_version
2829

2930
from . import config, exc, log, util, __file__ as tmuxp_path
@@ -1085,10 +1086,12 @@ def format_tmux_resp(std_resp):
10851086
"""
10861087
Format tmux command response for tmuxp stdout.
10871088
"""
1088-
return '\n'.join([
1089-
'\n'.join(prepend_tab(std_resp.stdout)),
1090-
click.style('\n'.join(prepend_tab(std_resp.stderr)), fg='red'),
1091-
])
1089+
return '\n'.join(
1090+
[
1091+
'\n'.join(prepend_tab(std_resp.stdout)),
1092+
click.style('\n'.join(prepend_tab(std_resp.stderr)), fg='red'),
1093+
]
1094+
)
10921095

10931096
output = [
10941097
output_break(),

0 commit comments

Comments
 (0)