Skip to content

Commit

Permalink
Unskip failing cross section test
Browse files Browse the repository at this point in the history
Remove the skip marker from the 'test_missing_cross_section' test, enabling it to run. Added a cleanup step to delete 'main_window' at the end of the test to ensure proper resource deallocation.

Signed-off-by: Jose Borreguero <[email protected]>
  • Loading branch information
jmborr committed Oct 25, 2024
1 parent 8174025 commit 61ae645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ui/test_missing_cross_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
TEST_REFLECTIVITY_THRESHOLD_VALUE = 0.01


@pytest.mark.skip("Test fails in the CI pipeline, see EWM 7743")
#@pytest.mark.skip("Test fails in the CI pipeline, see EWM 7743")
@pytest.mark.datarepo
def test_missing_cross_section(qtbot):
r"""Test a run where the crossection corresponding to the On-On spin combination has no integrated
Expand All @@ -33,7 +33,7 @@ def test_missing_cross_section(qtbot):
# check the x vs TOF plot has changed
intensity_on_on = np.sum(ui_utilities.data_from_plot2D(main_window.xtof_overview))
assert intensity_on_on / intensity_off_on < TEST_REFLECTIVITY_THRESHOLD_VALUE

del main_window

if __name__ == "__main__":
pytest.main([__file__])

0 comments on commit 61ae645

Please sign in to comment.