From a6aeb999c6ac108589bfff90d914d4a33770b2e5 Mon Sep 17 00:00:00 2001 From: patquem Date: Mon, 20 Jan 2025 16:31:15 +0100 Subject: [PATCH] specify gui='tkinter' --- tests/test_gui_2d_maps.py | 2 +- tests/test_gui_apply_model_to_all_new_spectra.py | 2 +- tests/test_gui_peak_models_in_noise.py | 3 +-- tests/test_gui_users_defined_models_2d_map.py | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/test_gui_2d_maps.py b/tests/test_gui_2d_maps.py index db38150..064ea9f 100644 --- a/tests/test_gui_2d_maps.py +++ b/tests/test_gui_2d_maps.py @@ -12,7 +12,7 @@ @pytest.mark.skipif(not display_is_ok(), reason="DISPLAY problem") def test_gui_2d_maps(tmp_path): - gui_2d_maps(dirname_res=tmp_path) + gui_2d_maps(dirname_res=tmp_path, gui='tkinter') results = extract_results(dirname_res=tmp_path) # print(results) diff --git a/tests/test_gui_apply_model_to_all_new_spectra.py b/tests/test_gui_apply_model_to_all_new_spectra.py index bd90e5d..a868d0a 100644 --- a/tests/test_gui_apply_model_to_all_new_spectra.py +++ b/tests/test_gui_apply_model_to_all_new_spectra.py @@ -13,7 +13,7 @@ @pytest.mark.skipif(not display_is_ok(), reason="DISPLAY problem") def test_gui_apply_model_to_all(tmp_path): - gui_apply_model_to_all(dirname_res=tmp_path) + gui_apply_model_to_all(dirname_res=tmp_path, gui='tkinter') results = extract_results(dirname_res=tmp_path) # print(results) diff --git a/tests/test_gui_peak_models_in_noise.py b/tests/test_gui_peak_models_in_noise.py index 0304b0d..a5f2374 100644 --- a/tests/test_gui_peak_models_in_noise.py +++ b/tests/test_gui_peak_models_in_noise.py @@ -12,7 +12,7 @@ @pytest.mark.skipif(not display_is_ok(), reason="DISPLAY problem") def test_gui_peak_models_in_noise(tmp_path): - ex_gui_peak_models_in_noise(dirname_res=tmp_path) + ex_gui_peak_models_in_noise(dirname_res=tmp_path, gui='tkinter') results = extract_results(dirname_res=tmp_path) # print(results) @@ -20,6 +20,5 @@ def test_gui_peak_models_in_noise(tmp_path): refs = [[183.97390206707158, 43.34103197326187, 88.17499327790364], [183.9526502120302, 0.0, 0.1]] - for result, reference in zip(results, refs): assert result == approx(reference, rel=1e-3) diff --git a/tests/test_gui_users_defined_models_2d_map.py b/tests/test_gui_users_defined_models_2d_map.py index 4c2167c..918ace3 100644 --- a/tests/test_gui_users_defined_models_2d_map.py +++ b/tests/test_gui_users_defined_models_2d_map.py @@ -20,7 +20,7 @@ @pytest.mark.skipif(not display_is_ok(), reason="DISPLAY problem") @pytest.mark.parametrize("ncpus", [1]) def test_gui_users_models_from_txt(ncpus, tmp_path): - ex_gui_users_models_from_txt(ncpus=ncpus, dirname_res=tmp_path) + ex_gui_users_models_from_txt(ncpus=ncpus, dirname_res=tmp_path, gui='tkinter') results = extract_results(dirname_res=tmp_path) # print("results from txt", results) @@ -32,7 +32,7 @@ def test_gui_users_models_from_txt(ncpus, tmp_path): @pytest.mark.skipif(not display_is_ok(), reason="DISPLAY problem") @pytest.mark.parametrize("ncpus", [1]) def test_gui_users_models_from_py(ncpus, tmp_path): - ex_gui_users_models_from_py(ncpus=ncpus, dirname_res=tmp_path) + ex_gui_users_models_from_py(ncpus=ncpus, dirname_res=tmp_path, gui='tkinter') results = extract_results(dirname_res=tmp_path) # print("results from py", results)