@@ -26,6 +26,7 @@ def test_default(self, mock_Popen):
2626 args .pid = None
2727 args .unfocused_only = False
2828 args .hide_command = False
29+ args .locked_only = False
2930 self .assertEqual (('"true" succeeded in 0:00 minutes' , 0 ),
3031 run_cmd (args ))
3132
@@ -39,6 +40,7 @@ def test_emoji(self, mock_Popen):
3940 args .no_emoji = False
4041 args .unfocused_only = False
4142 args .hide_command = False
43+ args .locked_only = False
4244 self .assertEqual (
4345 (':white_check_mark: "true" succeeded in 0:00 minutes' , 0 ),
4446 run_cmd (args ))
@@ -70,6 +72,7 @@ def test_failure(self, mock_Popen):
7072 args .pid = None
7173 args .unfocused_only = False
7274 args .hide_command = False
75+ args .locked_only = False
7376 self .assertEqual (('"false" failed (code 42) in 0:00 minutes' , 42 ),
7477 run_cmd (args ))
7578
@@ -82,6 +85,7 @@ def test_stdout(self, mock_Popen):
8285 args .pid = None
8386 args .unfocused_only = False
8487 args .hide_command = False
88+ args .locked_only = False
8589 # not actually used
8690 args .stdout = True
8791 args .stderr = False
@@ -97,6 +101,7 @@ def test_stderr(self, mock_Popen):
97101 args .pid = None
98102 args .unfocused_only = False
99103 args .hide_command = False
104+ args .locked_only = False
100105 # not actually used
101106 args .stdout = False
102107 args .stderr = True
@@ -112,6 +117,7 @@ def test_stdout_and_stderr(self, mock_Popen):
112117 args .pid = None
113118 args .unfocused_only = False
114119 args .hide_command = False
120+ args .locked_only = False
115121 # not actually used
116122 args .stdout = True
117123 args .stderr = True
@@ -128,6 +134,7 @@ def test_failure_stdout_and_stderr(self, mock_Popen):
128134 args .pid = None
129135 args .unfocused_only = False
130136 args .hide_command = False
137+ args .locked_only = False
131138 # not actually used
132139 args .stdout = True
133140 args .stderr = True
@@ -144,6 +151,7 @@ def test_hide_command(self, mock_Popen):
144151 args .pid = None
145152 args .unfocused_only = False
146153 args .hide_command = True
154+ args .locked_only = False
147155 self .assertEqual (('Your command succeeded in 0:00 minutes' , 0 ),
148156 run_cmd (args ))
149157
@@ -155,6 +163,7 @@ def test_formatter(self):
155163 args .longer_than = - 1
156164 args .unfocused_only = False
157165 args .hide_command = False
166+ args .locked_only = False
158167 self .assertEqual (('"true" succeeded in 1:05 minutes' , 0 ),
159168 run_cmd (args ))
160169
@@ -166,6 +175,7 @@ def test_formatter_failure(self):
166175 args .longer_than = - 1
167176 args .unfocused_only = False
168177 args .hide_command = False
178+ args .locked_only = False
169179 self .assertEqual (('"false" failed (code 1) in 0:10 minutes' , 1 ),
170180 run_cmd (args ))
171181
@@ -199,6 +209,7 @@ def test_watch_pid(self, mock_process):
199209 args = MagicMock ()
200210 args .pid = 1
201211 args .unfocused_only = False
212+ args .locked_only = False
202213 self .assertEqual ('PID[1]: "cmd" finished in 0:00 minutes' ,
203214 run_cmd (args )[0 ])
204215
0 commit comments