Skip to content

Commit

Permalink
specify gui='tkinter'
Browse files Browse the repository at this point in the history
  • Loading branch information
patquem committed Jan 20, 2025
1 parent f61694e commit a6aeb99
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_gui_2d_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gui_apply_model_to_all_new_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_gui_peak_models_in_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@

@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)

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)
4 changes: 2 additions & 2 deletions tests/test_gui_users_defined_models_2d_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit a6aeb99

Please sign in to comment.