File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def test_download_rizin_successfully(tmp_path):
188
188
def test_fail_to_download_rizin_due_to_unavailable_network (tmp_path ):
189
189
target_path = tmp_path / "rizin"
190
190
191
- with patch ("subprocess.Popen.__new__ " ) as mock :
191
+ with patch ("quark.utils.tools._execute_command " ) as mock :
192
192
mock .side_effect = CalledProcessError (
193
193
"1" ,
194
194
"mock command" ,
@@ -202,7 +202,7 @@ def test_fail_to_download_rizin_due_to_unavailable_network(tmp_path):
202
202
def test_fail_to_download_rizin_due_to_unknown_errors (tmp_path ):
203
203
target_path = tmp_path / "rizin"
204
204
205
- with patch ("subprocess.Popen.__new__ " ) as mock :
205
+ with patch ("quark.utils.tools._execute_command " ) as mock :
206
206
mock .side_effect = CalledProcessError ("1" , "mock command" , stderr = b"" )
207
207
208
208
assert not download_rizin (target_path )
You can’t perform that action at this time.
0 commit comments