diff options
| author | Brianna Rainey | 2026-01-29 14:50:29 -0500 |
|---|---|---|
| committer | GitHub | 2026-01-29 14:50:29 -0500 |
| commit | 71a22c6a121d1294a05ef35020c525fa70cae2fd (patch) | |
| tree | 025dd2329c214a5fe5ac78c7f2e8342e2bfde14d /tests/test_toolkit_ffmpeg.py | |
| parent | f66eb99465c61232a7f649e66bee59504bb0e52c (diff) | |
v2.2.2 - fix flaky tests, fix UnboundLocalError in MainWindow.createNewProject (#94)
* search more than one filename for compName
* remove extra QVBoxLayout
* insert default components using name instead of index
* bump version 2.2.1 to 2.2.2
* tests do not use `.config` for settings
Core.storeSettings() is no longer called as a side effect any time avp.core is imported. Thus the tests use a new `initCore` method and the normal user path now relies on entering via `cli.py`. This means certain toolkit functions (e.g., ones using `FFMPEG_BIN`) no longer work if imported from a different python script, unless they call Core.storeSettings() themselves to initialize the settings.ini file
* fix UnboundLocalError in createNewProject
Diffstat (limited to 'tests/test_toolkit_ffmpeg.py')
| -rw-r--r-- | tests/test_toolkit_ffmpeg.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_toolkit_ffmpeg.py b/tests/test_toolkit_ffmpeg.py index b015470..363eba1 100644 --- a/tests/test_toolkit_ffmpeg.py +++ b/tests/test_toolkit_ffmpeg.py @@ -1,7 +1,8 @@ import pytest +from avp.core import Core from avp.command import Command from avp.toolkit.ffmpeg import createFfmpegCommand -from . import audioData +from . import audioData, getTestDataPath, initCore def test_readAudioFile_data(audioData): @@ -14,6 +15,7 @@ def test_readAudioFile_duration(audioData): @pytest.mark.parametrize("width, height", ((1920, 1080), (1280, 720))) def test_createFfmpegCommand(width, height): + initCore() command = Command() command.settings.setValue("outputWidth", width) command.settings.setValue("outputHeight", height) |
