| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -199,7 +199,6 @@ def run_async( | |||
| 199 | 199 | pipe_stderr=False, | |
| 200 | 200 | quiet=False, | |
| 201 | 201 | overwrite_output=False, | |
| 202 | - cwd=None | ||
| 203 | 202 | ): | |
| 204 | 203 | """Asynchronously invoke ffmpeg for the supplied node graph. | |
| 205 | 204 | ||
@@ -286,8 +285,7 @@ def run_async( | |||
| 286 | 285 | stderr_stream = subprocess.STDOUT | |
| 287 | 286 | stdout_stream = subprocess.DEVNULL | |
| 288 | 287 | return subprocess.Popen( | |
| 289 | - args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream, | ||
| 290 | - cwd=cwd | ||
| 288 | + args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream | ||
| 291 | 289 | ) | |
| 292 | 290 | ||
| 293 | 291 | ||
@@ -300,7 +298,6 @@ def run( | |||
| 300 | 298 | input=None, | |
| 301 | 299 | quiet=False, | |
| 302 | 300 | overwrite_output=False, | |
| 303 | - cwd=None | ||
| 304 | 301 | ): | |
| 305 | 302 | """Invoke ffmpeg for the supplied node graph. | |
| 306 | 303 | ||
@@ -324,7 +321,6 @@ def run( | |||
| 324 | 321 | pipe_stderr=capture_stderr, | |
| 325 | 322 | quiet=quiet, | |
| 326 | 323 | overwrite_output=overwrite_output, | |
| 327 | - cwd=cwd | ||
| 328 | 324 | ) | |
| 329 | 325 | out, err = process.communicate(input) | |
| 330 | 326 | retcode = process.poll() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments