Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/test_comp_spectrum.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from avp.command import Command
from pytestqt import qtbot
from pytest import fixture
from pytest import fixture, approx
from . import (
imageDataSum,
command,
Expand All @@ -21,7 +21,10 @@ def coreWithSpectrumComp(qtbot, command):
def test_comp_spectrum_previewRender(coreWithSpectrumComp):
comp = coreWithSpectrumComp.selectedComponents[0]
image = comp.previewRender()
assert imageDataSum(image) == 71992628

accept_range = 719 # Accept images with ±0.001% difference
expected = 71992628 # This value was extracted on amd64
assert imageDataSum(image) == approx(expected, abs=accept_range)


def test_comp_spectrum_renderFrame(coreWithSpectrumComp, audioData):
Expand Down
Loading