aboutsummaryrefslogtreecommitdiff
path: root/tests/test_comp_waveform.py
blob: a71040b39543445de73d55ff70685105a57278e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from avp.command import Command
from pytestqt import qtbot
from pytest import fixture


@fixture
def coreWithWaveformComp(qtbot):
    """Fixture providing a Command object with Waveform component added"""
    command = Command()
    command.core.insertComponent(0, command.core.moduleIndexFor("Waveform"), command)
    yield command.core


def test_comp_waveform_setColor(coreWithWaveformComp):
    comp = coreWithWaveformComp.selectedComponents[0]
    comp.page.lineEdit_color.setText("255,255,255")
    assert comp.color == (255, 255, 255)