diff options
Diffstat (limited to 'tests/test_comp_spectrum.py')
| -rw-r--r-- | tests/test_comp_spectrum.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_comp_spectrum.py b/tests/test_comp_spectrum.py new file mode 100644 index 0000000..44fb257 --- /dev/null +++ b/tests/test_comp_spectrum.py @@ -0,0 +1,20 @@ +from avp.command import Command +from pytestqt import qtbot +from pytest import fixture +from . import imageDataSum + + +@fixture +def coreWithSpectrumComp(qtbot): + """Fixture providing a Command object with Spectrum component added""" + command = Command() + command.settings.setValue("outputHeight", 1080) + command.settings.setValue("outputWidth", 1920) + command.core.insertComponent(0, command.core.moduleIndexFor("Spectrum"), command) + yield command.core + + +def test_comp_waveform_previewRender(coreWithSpectrumComp): + comp = coreWithSpectrumComp.selectedComponents[0] + image = comp.previewRender() + assert imageDataSum(image) == 71992628 |
