mantidproject / mantidimaging

Graphical toolkit for neutron imaging.
https://mantidproject.github.io/mantidimaging
GNU General Public License v3.0
10 stars 6 forks source link

Stack change units tests added to Spectrum Viewer #2235

Closed MikeSullivan7 closed 1 week ago

MikeSullivan7 commented 2 weeks ago

Issue

Progresses #2213 and #2032

Description

Added unit tests to check the tof mode is changed correctly when:

These tests check that the tof mode is changed as expected but also if the right click units menu has the correct behaviour (i.e. disabling when there is no spectra file and enabling when there is a spectrum file).

A test has also been added to check that when there is no stack available in the spectrum viewer (i.e. it has been deleted in the Main Window), then the tof mode and right click menu behaves appropriately.

Acceptance Criteria

Test that all tests pass with make check

Documentation

Release note

MikeSullivan7 commented 2 weeks ago

Note: I have said that it progresses the issues in case we want to add some more tests to the PR :)

coveralls commented 2 weeks ago

Coverage Status

coverage: 73.176% (+0.2%) from 72.992% when pulling 99d426a4d3440cb6a0ba7a2e268eb66816d0a747 on 2213-spectrum-viewer-stack-units-tests into f0433e57e2d08e1c771306299f1aa9b288a0caca on main.

coveralls commented 1 week ago

Coverage Status

coverage: 73.229% (+0.2%) from 72.992% when pulling fbc701d7b45d7924e198e020bcdb78dc581a70d7 on 2213-spectrum-viewer-stack-units-tests into f0433e57e2d08e1c771306299f1aa9b288a0caca on main.