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


@fixture
def coreWithWaveformComp(qtbot, command):
    """Fixture providing a Command object with Waveform component added"""
    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)