From b790dd2d081e824f9094afc32546d4b70a018119 Mon Sep 17 00:00:00 2001 From: Klaus Wakonig Date: Thu, 13 Jul 2023 18:46:30 +0200 Subject: [PATCH] test: removed deprecated waitforwindowshown method of qtbot --- tests/test_scan_plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_scan_plot.py b/tests/test_scan_plot.py index 3f4b6372..fac058b9 100644 --- a/tests/test_scan_plot.py +++ b/tests/test_scan_plot.py @@ -8,7 +8,7 @@ def test_scan_plot(qtbot): plot = scan_plot.BECScanPlot() qtbot.addWidget(plot) plot.show() - qtbot.waitForWindowShown(plot) + qtbot.waitExposed(plot) plot.x_channel = "x" plot.y_channel_list = ["y1", "y2"] @@ -30,7 +30,7 @@ def test_scan_plot_clears_data(qtbot): plot = scan_plot.BECScanPlot() qtbot.addWidget(plot) plot.show() - qtbot.waitForWindowShown(plot) + qtbot.waitExposed(plot) plot.x_channel = "x" plot.y_channel_list = ["y1", "y2"] @@ -53,7 +53,7 @@ def test_scan_plot_redraws_dap(qtbot): plot = scan_plot.BECScanPlot() qtbot.addWidget(plot) plot.show() - qtbot.waitForWindowShown(plot) + qtbot.waitExposed(plot) plot.y_channel_list = ["dap.y1", "dap.y2"]