aboutsummaryrefslogtreecommitdiff
path: root/tests/test_comp_waveform.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_comp_waveform.py')
-rw-r--r--tests/test_comp_waveform.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_comp_waveform.py b/tests/test_comp_waveform.py
new file mode 100644
index 0000000..a71040b
--- /dev/null
+++ b/tests/test_comp_waveform.py
@@ -0,0 +1,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)