Skip to content

Commit

Permalink
TST: Allow test to fail to expose bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Mar 12, 2024
1 parent 4907826 commit 2b9e9b5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions jdaviz/configs/imviz/tests/test_orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,9 @@ def test_N_up_multi_viewer(self):
assert self.viewer.state.reference_data.label == "has_wcs_1[SCI,1]"
assert viewer_2.state.reference_data.label == "has_wcs_1[SCI,1]"

# FIXME: spacetelescope/jdaviz#2724 (remove AssertionError)
lc_plugin.link_type = 'WCS'
with pytest.raises(AssertionError):
assert self.viewer.state.reference_data.label == "Default orientation"
with pytest.raises(AssertionError):
assert viewer_2.state.reference_data.label == "Default orientation"
assert self.viewer.state.reference_data.label == "Default orientation"
assert viewer_2.state.reference_data.label == "Default orientation"

def test_custom_orientation(self):
lc_plugin = self.imviz.plugins['Orientation']
Expand Down

0 comments on commit 2b9e9b5

Please sign in to comment.