0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix(waveform_widget): plot API unified with BECFigure

This commit is contained in:
2024-07-19 16:03:48 +02:00
parent 50135b5fe9
commit 2c8764a27d
3 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,7 @@ def test_waveform_widget_set_x(waveform_widget, mock_waveform):
def test_waveform_plot_data(waveform_widget, mock_waveform):
waveform_widget.plot(x=[1, 2, 3], y=[1, 2, 3])
waveform_widget.waveform.plot.assert_called_once_with(
arg1=None,
x=[1, 2, 3],
y=[1, 2, 3],
x_name=None,
@ -73,6 +74,7 @@ def test_waveform_plot_data(waveform_widget, mock_waveform):
def test_waveform_plot_scan_curves(waveform_widget, mock_waveform):
waveform_widget.plot(x_name="samx", y_name="samy", dap="GaussianModel")
waveform_widget.waveform.plot.assert_called_once_with(
arg1=None,
x=None,
y=None,
x_name="samx",