From 9ad20d6317f4e817d010daeabc18dffb7b1b1755 Mon Sep 17 00:00:00 2001 From: Pedro Sotorrio Date: Mon, 2 Oct 2023 16:43:38 -0700 Subject: [PATCH] fixing test_plot_utils.py --- foqus_lib/framework/sdoe/test/test_plot_utils.py | 2 +- foqus_lib/gui/sdoe/sdoePreview_UI.ui | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/foqus_lib/framework/sdoe/test/test_plot_utils.py b/foqus_lib/framework/sdoe/test/test_plot_utils.py index ec1c2516e..0e2d5e1dc 100644 --- a/foqus_lib/framework/sdoe/test/test_plot_utils.py +++ b/foqus_lib/framework/sdoe/test/test_plot_utils.py @@ -31,7 +31,7 @@ def test_plot(fake_plt: mock.MagicMock): plot_utils.plot(fname=fname, scatter_label=scatter_label) - assert fake_plt.show.call_count > 0 + assert fake_plt.figure.called def copy_from_package(file_name: str) -> None: diff --git a/foqus_lib/gui/sdoe/sdoePreview_UI.ui b/foqus_lib/gui/sdoe/sdoePreview_UI.ui index b47aa31a0..6fed6809f 100644 --- a/foqus_lib/gui/sdoe/sdoePreview_UI.ui +++ b/foqus_lib/gui/sdoe/sdoePreview_UI.ui @@ -2,6 +2,9 @@ Dialog + + Qt::WindowModal + 0