From f7cbdbc5ca318d60a9501df3fa03c7dea15b5b21 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Thu, 12 Oct 2023 15:32:52 +0200 Subject: [PATCH] fix: scan_plot tests Add scanID key to scan_segment in tests --- tests/test_scan_plot.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_scan_plot.py b/tests/test_scan_plot.py index 321304e9..8978e9d1 100644 --- a/tests/test_scan_plot.py +++ b/tests/test_scan_plot.py @@ -19,7 +19,8 @@ def test_scan_plot(qtbot): "x": {"x": {"value": 1}}, "y1": {"y1": {"value": 1}}, "y2": {"y2": {"value": 3}}, - } + }, + "scanID": "test", }, {"scanID": "test", "scan_number": 1, "scan_report_devices": ["x"]}, ) @@ -29,7 +30,8 @@ def test_scan_plot(qtbot): "x": {"x": {"value": 2}}, "y1": {"y1": {"value": 2}}, "y2": {"y2": {"value": 4}}, - } + }, + "scanID": "test", }, {"scanID": "test", "scan_number": 1, "scan_report_devices": ["x"]}, ) @@ -54,7 +56,8 @@ def test_scan_plot_clears_data(qtbot): "x": {"x": {"value": 1}}, "y1": {"y1": {"value": 1}}, "y2": {"y2": {"value": 3}}, - } + }, + "scanID": "test", }, {"scanID": "test", "scan_number": 1, "scan_report_devices": ["x"]}, ) @@ -65,7 +68,8 @@ def test_scan_plot_clears_data(qtbot): "x": {"x": {"value": 2}}, "y1": {"y1": {"value": 2}}, "y2": {"y2": {"value": 4}}, - } + }, + "scanID": "test", }, {"scanID": "test", "scan_number": 1, "scan_report_devices": ["x"]}, )