Skip to content

Commit 29dd144

Browse files
committed
tests(sleep): Test shell_command_before
1 parent 48f0c6c commit 29dd144

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test_workspacebuilder.py

+16
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,21 @@ def test_load_workspace_enter(
10811081
- shell_command:
10821082
- cmd: echo "___$((1 + 3))___"
10831083
sleep_before: 2
1084+
"""
1085+
),
1086+
2,
1087+
"___4___",
1088+
],
1089+
[
1090+
textwrap.dedent(
1091+
"""
1092+
session_name: Should not execute
1093+
shell_command_before:
1094+
- cmd: echo "sleeping before"
1095+
sleep_before: 2
1096+
windows:
1097+
- panes:
1098+
- echo "___$((1 + 3))___"
10841099
"""
10851100
),
10861101
2,
@@ -1092,6 +1107,7 @@ def test_load_workspace_enter(
10921107
"command_level_pane_sleep_3_longform",
10931108
"pane_sleep_2_shortform",
10941109
"pane_sleep_2_longform",
1110+
"shell_before_before_command_level",
10951111
],
10961112
)
10971113
def test_load_workspace_sleep(

0 commit comments

Comments
 (0)