Skip to content

Commit

Permalink
test_plots updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrou committed Aug 21, 2023
1 parent 25fdfea commit 3143807
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/views/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def test_plot4d(qtbot, user_conf_file, monkeypatch):
indirect=True,
)
def test_plot4d_invalid_scale(qtbot, user_conf_file, monkeypatch):
"""Test for 4D plot with intensities"""
"""Test for 4D plot with invalid intensities"""

# mock get_oncat_url, client_id and use_notes info
monkeypatch.setattr("shiver.configuration.CONFIG_PATH_FILE", user_conf_file)
Expand All @@ -325,7 +325,7 @@ def test_plot4d_invalid_scale(qtbot, user_conf_file, monkeypatch):
title = None
view = do_default_plot(workspace, 4, title, {"min": intensity_min, "max": intensity_max})
# mantid plot updates user values if invalid are passed
assert view.data_view.colorbar.cmin_value == 0.0001
assert view.data_view.colorbar.cmin_value != intensity_min
assert view.data_view.colorbar.cmax_value == intensity_max
assert view.data_view.colorbar.norm.currentText() == "Log"

Expand Down Expand Up @@ -382,7 +382,7 @@ def test_plot5d(qtbot, user_conf_file, monkeypatch):
indirect=True,
)
def test_plot_data_name_only(qtbot, user_conf_file, monkeypatch):
"""Test plot inputs"""
"""Test plot inputs with name_only title"""

# mock get_oncat_url, client_id and use_notes info
monkeypatch.setattr("shiver.configuration.CONFIG_PATH_FILE", user_conf_file)
Expand Down Expand Up @@ -420,7 +420,7 @@ def test_plot_data_name_only(qtbot, user_conf_file, monkeypatch):
indirect=True,
)
def test_plot_data_full(qtbot, user_conf_file, monkeypatch):
"""Test plot inputs"""
"""Test plot inputs with a customized full title and intensitites"""

# mock plot info
monkeypatch.setattr("shiver.configuration.CONFIG_PATH_FILE", user_conf_file)
Expand Down Expand Up @@ -469,7 +469,7 @@ def monk_display_name(ws_name, ndims):
indirect=True,
)
def test_plot_data_none(qtbot, user_conf_file, monkeypatch):
"""Test plot inputs"""
"""Test plot inputs with no title and one intensity"""

# mock plot info
monkeypatch.setattr("shiver.configuration.CONFIG_PATH_FILE", user_conf_file)
Expand Down

0 comments on commit 3143807

Please sign in to comment.