From 39422d2ded9a275ee8eeff25c590f2538756c987 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 5 Feb 2024 13:49:52 -0600 Subject: [PATCH 1/2] tests: Stub out test for set_layout_hook() --- tests/cli/test_hooks.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/cli/test_hooks.py diff --git a/tests/cli/test_hooks.py b/tests/cli/test_hooks.py new file mode 100644 index 00000000000..4e0b1277e48 --- /dev/null +++ b/tests/cli/test_hooks.py @@ -0,0 +1,11 @@ +import typing as t + +from tmuxp.cli.load import set_layout_hook + +if t.TYPE_CHECKING: + from libtmux.session import Session + + +def test_set_layout_hook(session: "Session") -> None: + """Test set_layout_hook.""" + set_layout_hook(session, "main-vertical") From 6fe3f3212ec2d01e9d0a91a4fcb1360c65e3f4ce Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 5 Feb 2024 14:02:09 -0600 Subject: [PATCH 2/2] !squash --- tests/cli/test_hooks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/cli/test_hooks.py b/tests/cli/test_hooks.py index 4e0b1277e48..28c0b168b9a 100644 --- a/tests/cli/test_hooks.py +++ b/tests/cli/test_hooks.py @@ -1,3 +1,4 @@ +"""Tests for tmuxp's tmux(1) hooks.""" import typing as t from tmuxp.cli.load import set_layout_hook