@@ -24,6 +24,7 @@ def test_default(self, mock_Popen):
2424        args .pid  =  None 
2525        args .unfocused_only  =  False 
2626        args .hide_command  =  False 
27+         args .locked_only  =  False 
2728        self .assertEqual (('"true" succeeded in 0:00 minutes' , 0 ), run_cmd (args ))
2829
2930    @patch ('ntfy.cli.Popen' ) 
@@ -36,6 +37,7 @@ def test_emoji(self, mock_Popen):
3637        args .no_emoji  =  False 
3738        args .unfocused_only  =  False 
3839        args .hide_command  =  False 
40+         args .locked_only  =  False 
3941        self .assertEqual ((':white_check_mark: "true" succeeded in 0:00 minutes' , 0 ),
4042                         run_cmd (args ))
4143
@@ -55,6 +57,7 @@ def test_longerthan(self, mock_Popen):
5557        args .pid  =  None 
5658        args .unfocused_only  =  False 
5759        args .hide_command  =  False 
60+         args .locked_only  =  False 
5861        self .assertEqual ((None , None ), run_cmd (args ))
5962
6063    @patch ('ntfy.cli.Popen' ) 
@@ -66,6 +69,7 @@ def test_failure(self, mock_Popen):
6669        args .pid  =  None 
6770        args .unfocused_only  =  False 
6871        args .hide_command  =  False 
72+         args .locked_only  =  False 
6973        self .assertEqual (('"false" failed (code 42) in 0:00 minutes' , 42 ), run_cmd (args ))
7074
7175    @patch ('ntfy.cli.Popen' ) 
@@ -77,6 +81,7 @@ def test_stdout(self, mock_Popen):
7781        args .pid  =  None 
7882        args .unfocused_only  =  False 
7983        args .hide_command  =  False 
84+         args .locked_only  =  False 
8085        # not actually used 
8186        args .stdout  =  True 
8287        args .stderr  =  False 
@@ -91,6 +96,7 @@ def test_stderr(self, mock_Popen):
9196        args .pid  =  None 
9297        args .unfocused_only  =  False 
9398        args .hide_command  =  False 
99+         args .locked_only  =  False 
94100        # not actually used 
95101        args .stdout  =  False 
96102        args .stderr  =  True 
@@ -105,6 +111,7 @@ def test_stdout_and_stderr(self, mock_Popen):
105111        args .pid  =  None 
106112        args .unfocused_only  =  False 
107113        args .hide_command  =  False 
114+         args .locked_only  =  False 
108115        # not actually used 
109116        args .stdout  =  True 
110117        args .stderr  =  True 
@@ -119,6 +126,7 @@ def test_failure_stdout_and_stderr(self, mock_Popen):
119126        args .pid  =  None 
120127        args .unfocused_only  =  False 
121128        args .hide_command  =  False 
129+         args .locked_only  =  False 
122130        # not actually used 
123131        args .stdout  =  True 
124132        args .stderr  =  True 
@@ -143,6 +151,7 @@ def test_formatter(self):
143151        args .longer_than  =  - 1 
144152        args .unfocused_only  =  False 
145153        args .hide_command  =  False 
154+         args .locked_only  =  False 
146155        self .assertEqual (('"true" succeeded in 1:05 minutes' , 0 ), run_cmd (args ))
147156
148157    def  test_formatter_failure (self ):
@@ -153,6 +162,7 @@ def test_formatter_failure(self):
153162        args .longer_than  =  - 1 
154163        args .unfocused_only  =  False 
155164        args .hide_command  =  False 
165+         args .locked_only  =  False 
156166        self .assertEqual (('"false" failed (code 1) in 0:10 minutes' , 1 ), run_cmd (args ))
157167
158168
@@ -186,6 +196,7 @@ def test_watch_pid(self, mock_process):
186196        args  =  MagicMock ()
187197        args .pid  =  1 
188198        args .unfocused_only  =  False 
199+         args .locked_only  =  False 
189200        self .assertEqual ('PID[1]: "cmd" finished in 0:00 minutes' ,
190201                         run_cmd (args )[0 ])
191202
0 commit comments