File tree 1 file changed +58
-0
lines changed
1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -919,6 +919,60 @@ def test_find_current_active_pane(server, monkeypatch):
919
919
- panes:
920
920
- shell_command:
921
921
- echo "___$((1 + 3))___"
922
+ """
923
+ ),
924
+ "___4___" ,
925
+ True ,
926
+ ],
927
+ [
928
+ textwrap .dedent (
929
+ """
930
+ session_name: Should not execute
931
+ windows:
932
+ - panes:
933
+ - shell_command:
934
+ - cmd: echo "___$((1 + 3))___"
935
+ enter: false
936
+ """
937
+ ),
938
+ "___4___" ,
939
+ False ,
940
+ ],
941
+ [
942
+ textwrap .dedent (
943
+ """
944
+ session_name: Should not execute
945
+ windows:
946
+ - panes:
947
+ - shell_command:
948
+ - cmd: echo "___$((1 + 3))___"
949
+ enter: false
950
+ """
951
+ ),
952
+ "___4___" ,
953
+ False ,
954
+ ],
955
+ [
956
+ textwrap .dedent (
957
+ """
958
+ session_name: Should execute
959
+ windows:
960
+ - panes:
961
+ - shell_command: echo "___$((1 + 3))___"
962
+ """
963
+ ),
964
+ "___4___" ,
965
+ True ,
966
+ ],
967
+ [
968
+ textwrap .dedent (
969
+ """
970
+ session_name: Should execute
971
+ windows:
972
+ - panes:
973
+ - shell_command:
974
+ - cmd: echo "other command"
975
+ - cmd: echo "___$((1 + 3))___"
922
976
"""
923
977
),
924
978
"___4___" ,
@@ -930,6 +984,10 @@ def test_find_current_active_pane(server, monkeypatch):
930
984
"pane_enter_false_longform" ,
931
985
"pane_enter_default_shortform" ,
932
986
"pane_enter_default_longform" ,
987
+ "pane_command_enter_false_shortform" ,
988
+ "pane_command_enter_false_longform" ,
989
+ "pane_command_enter_default_shortform" ,
990
+ "pane_command_enter_default_longform" ,
933
991
],
934
992
)
935
993
def test_load_workspace_enter (
You can’t perform that action at this time.
0 commit comments