blob: 44fb257a14d442bc79fc91ea951b256a387727f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|