test: removed deprecated waitforwindowshown method of qtbot

This commit is contained in:
2023-07-13 18:46:37 +02:00
parent ac868c80de
commit b790dd2d08
+3 -3
View File
@@ -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"]