0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

fix(waveform): legend is correctly updated when changed from curve dialog

This commit is contained in:
2025-03-25 12:47:29 +01:00
parent b91f1fe487
commit c2d2c484cd
4 changed files with 11 additions and 6 deletions

View File

@ -344,7 +344,6 @@ def test_export_data_dap(curve_tree_fixture):
# Add a device curve with specific parameters
device_row = curve_tree.add_new_curve(name="bpm4i", entry="bpm4i")
device_row.config.label = "bpm4i-main"
# Add a DAP child
device_row.add_dap_row()
@ -358,8 +357,8 @@ def test_export_data_dap(curve_tree_fixture):
# Check the exported data
assert exported["source"] == "dap"
assert exported["parent_label"] == "bpm4i-main"
assert exported["parent_label"] == "bpm4i-bpm4i"
assert exported["signal"]["name"] == "bpm4i"
assert exported["signal"]["entry"] == "bpm4i"
assert exported["signal"]["dap"] == "GaussianModel"
assert exported["label"] == "bpm4i-main-GaussianModel"
assert exported["label"] == "bpm4i-bpm4i-GaussianModel"