Skip to content

Commit

Permalink
TST: Reproduce the reparenting failure.
Browse files Browse the repository at this point in the history
Co-authored-by:  Ricky O'Steen <39831871+rosteen@users.noreply.github.com>
  • Loading branch information
pllim and rosteen committed Feb 26, 2024
1 parent d4d958f commit 3d5e6b1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions jdaviz/configs/imviz/tests/test_delete_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from astropy.coordinates import Angle
from astropy.nddata import NDData
from astropy.tests.helper import assert_quantity_allclose
from glue.core.message import DataCollectionDeleteMessage
from numpy.testing import assert_allclose
from regions import PixCoord, CirclePixelRegion, RectanglePixelRegion, EllipsePixelRegion

Expand Down Expand Up @@ -93,10 +92,8 @@ def test_delete_wcs_layer_with_subset(self):
# Switch back to Default Orientation.
self.imviz.app._change_reference_data("Default orientation")

# Delete N-up E-left reference data.
self.imviz.app._on_data_deleted(DataCollectionDeleteMessage(
data=self.imviz.app.data_collection["North-up, East-left"],
sender=self.imviz.app.data_collection))
# Delete N-up E-left reference data from GUI.
self.imviz.app.vue_data_item_remove({"item_name": "North-up, East-left"})

# Make sure rotated ellipse is still the same as before.
out_reg_d = self.imviz.app.get_subsets(include_sky_region=True)['Subset 1'][0]['sky_region']
Expand Down

0 comments on commit 3d5e6b1

Please sign in to comment.