Skip to content

Commit 6c5ffe0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4785730 commit 6c5ffe0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/test_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,9 +889,9 @@ def test_freeze(server, cli_args, inputs, tmpdir, monkeypatch):
889889

890890
# Assign an active pane to the session
891891
second_session = server.list_sessions()[1]
892-
first_pane_on_second_session_id = (
893-
second_session.list_windows()[0].list_panes()[0]["pane_id"]
894-
)
892+
first_pane_on_second_session_id = second_session.list_windows()[0].list_panes()[0][
893+
"pane_id"
894+
]
895895
monkeypatch.setenv("TMUX_PANE", first_pane_on_second_session_id)
896896

897897
with tmpdir.as_cwd():

tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from tmuxp import exc
77
from tmuxp.exc import BeforeLoadScriptError, BeforeLoadScriptNotExists
8-
from tmuxp.util import run_before_script, get_session
8+
from tmuxp.util import get_session, run_before_script
99

1010
from . import fixtures_dir
1111

tmuxp/workspacebuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def get_pane_shell():
348348
attach=True,
349349
start_directory=get_pane_start_directory(),
350350
shell=get_pane_shell(),
351-
target=p.id
351+
target=p.id,
352352
)
353353

354354
assert isinstance(p, Pane)

0 commit comments

Comments
 (0)