From 71a22c6a121d1294a05ef35020c525fa70cae2fd Mon Sep 17 00:00:00 2001 From: Brianna Rainey Date: Thu, 29 Jan 2026 14:50:29 -0500 Subject: 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--- tests/test_comp_original.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/test_comp_original.py') diff --git a/tests/test_comp_original.py b/tests/test_comp_original.py index 6264644..8cd00a4 100644 --- a/tests/test_comp_original.py +++ b/tests/test_comp_original.py @@ -2,16 +2,15 @@ from avp.command import Command from avp.toolkit.visualizer import transformData from pytestqt import qtbot from pytest import fixture -from . import audioData, MockSignal, imageDataSum +from . import audioData, command, MockSignal, imageDataSum sampleSize = 1470 # 44100 / 30 = 1470 @fixture -def coreWithClassicComp(qtbot): +def coreWithClassicComp(qtbot, command): """Fixture providing a Command object with Classic Visualizer component added""" - command = Command() command.core.insertComponent( 0, command.core.moduleIndexFor("Classic Visualizer"), command ) -- cgit v1.2.3