@@ -441,14 +441,12 @@ def test__compile():
441
441
@pytest .mark .parametrize ('pipe_stdin' , [True , False ])
442
442
@pytest .mark .parametrize ('pipe_stdout' , [True , False ])
443
443
@pytest .mark .parametrize ('pipe_stderr' , [True , False ])
444
- @pytest .mark .parametrize ('cwd' , [None , '/tmp' ])
445
- def test__run_async (mocker , pipe_stdin , pipe_stdout , pipe_stderr , cwd ):
444
+ def test__run_async (mocker , pipe_stdin , pipe_stdout , pipe_stderr ):
446
445
process__mock = mock .Mock ()
447
446
popen__mock = mocker .patch .object (subprocess , 'Popen' , return_value = process__mock )
448
447
stream = _get_simple_example ()
449
448
process = ffmpeg .run_async (
450
- stream , pipe_stdin = pipe_stdin , pipe_stdout = pipe_stdout ,
451
- pipe_stderr = pipe_stderr , cwd = cwd
449
+ stream , pipe_stdin = pipe_stdin , pipe_stdout = pipe_stdout , pipe_stderr = pipe_stderr
452
450
)
453
451
assert process is process__mock
454
452
@@ -458,8 +456,7 @@ def test__run_async(mocker, pipe_stdin, pipe_stdout, pipe_stderr, cwd):
458
456
(args ,), kwargs = popen__mock .call_args
459
457
assert args == ffmpeg .compile (stream )
460
458
assert kwargs == dict (
461
- stdin = expected_stdin , stdout = expected_stdout , stderr = expected_stderr ,
462
- cwd = cwd
459
+ stdin = expected_stdin , stdout = expected_stdout , stderr = expected_stderr
463
460
)
464
461
465
462
0 commit comments