From f03a3a686c7304588dd434322c73506531e53595 Mon Sep 17 00:00:00 2001 From: Brianna Rainey Date: Thu, 12 Feb 2026 15:38:54 -0500 Subject: v2.2.4 - Quiet FFmpeg; add "invert" option to Classic Vis; fix CLI parsing for Image component (#96) * change noisiness of terminal output ffmpeg no longer prints everything into the terminal unless we're in `--verbose` mode. percentage progress text stays on one line while not in verbose mode. * Added hint to run `avp --verbose` if `avp --log` is run with no avp_debug.log file present * Classic Visualizer: add invert option * Image component: fix path commandline option * Image component: restrict file formats in CLI to match GUI * Color component: add tooltip to color2 picker (second color of gradients) * change tests to work with pytest-xdist avp core stores its config (location of `settings.ini`) in temp directories if using multiple workers to run tests, so they don't interfere with each other. when using a single worker, the `tests/data/config` directory is still used * check alt comp names when parsing cmdline * rename `original.py` to `classic.py` * move `component.py` into subpackage * rename comp_original to comp_classic * show traceback if renderFrame() raises exception * do not try to insert non-existent components from project files * add "composite" property for components if a component returns "composite" then it will receive a frame to draw on during calls to previewRender and frameRender * more tests of projects, actions, waveform, spectrum, image, color, classic * do not change presetDir to "projects" within PresetManager--- tests/test_mainwindow_undostack.py | 64 -------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 tests/test_mainwindow_undostack.py (limited to 'tests/test_mainwindow_undostack.py') diff --git a/tests/test_mainwindow_undostack.py b/tests/test_mainwindow_undostack.py deleted file mode 100644 index ceaf87e..0000000 --- a/tests/test_mainwindow_undostack.py +++ /dev/null @@ -1,64 +0,0 @@ -from pytest import fixture -from pytestqt import qtbot -from avp.gui.mainwindow import MainWindow -from . import getTestDataPath, window - - -def test_undo_classic_visualizer_sensitivity(window, qtbot): - """Undo Classic Visualizer component sensitivity setting - should undo multiple merged actions.""" - window.core.insertComponent( - 0, window.core.moduleIndexFor("Classic Visualizer"), window - ) - comp = window.core.selectedComponents[0] - comp.imagePath = getTestDataPath("inputfiles/test.jpg") - for i in range(1, 100): - comp.page.spinBox_scale.setValue(i) - assert comp.scale == 99 - window.undoStack.undo() - assert comp.scale == 20 - - -def test_undo_image_scale(window, qtbot): - """Undo Image component scale setting should undo multiple merged actions.""" - window.core.insertComponent(0, window.core.moduleIndexFor("Image"), window) - comp = window.core.selectedComponents[0] - comp.imagePath = getTestDataPath("inputfiles/test.jpg") - comp.page.spinBox_scale.setValue(100) - for i in range(10, 401): - comp.page.spinBox_scale.setValue(i) - assert comp.scale == 400 - window.undoStack.undo() - assert comp.scale == 10 - window.undoStack.undo() - assert comp.scale == 100 - - -def test_undo_image_resizeMode(window, qtbot): - window.core.insertComponent(0, window.core.moduleIndexFor("Image"), window) - comp = window.core.selectedComponents[0] - comp.page.comboBox_resizeMode.setCurrentIndex(1) - assert not comp.page.spinBox_scale.isEnabled() - window.undoStack.undo() - assert comp.page.spinBox_scale.isEnabled() - - -def test_undo_title_text_merged(window, qtbot): - """Undoing title text change should undo all recent changes.""" - window.core.insertComponent(0, window.core.moduleIndexFor("Title Text"), window) - comp = window.core.selectedComponents[0] - comp.page.lineEdit_title.setText("avp") - comp.page.lineEdit_title.setText("test") - window.undoStack.undo() - assert comp.title == "Text" - - -def test_undo_title_text_not_merged(window, qtbot): - """Undoing title text change should undo up to previous different action""" - window.core.insertComponent(0, window.core.moduleIndexFor("Title Text"), window) - comp = window.core.selectedComponents[0] - comp.page.lineEdit_title.setText("avp") - comp.page.spinBox_xTextAlign.setValue(0) - comp.page.lineEdit_title.setText("test") - window.undoStack.undo() - assert comp.title == "avp" -- cgit v1.2.3