From 1efccddee2ff5ade9b4660f0638c8cdded5ce586 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Mon, 15 Jul 2024 09:49:30 +0100 Subject: [PATCH] Rename visual test figures to avoid conflicts in baseline image repo --- glue/tests/visual/py311-test-visual.json | 16 ++++++++-------- glue/viewers/histogram/tests/test_viewer.py | 2 +- glue/viewers/image/tests/test_viewer.py | 10 +++++----- glue/viewers/profile/tests/test_viewer.py | 2 +- glue/viewers/scatter/tests/test_viewer.py | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/glue/tests/visual/py311-test-visual.json b/glue/tests/visual/py311-test-visual.json index 1b221d497..73f94d216 100644 --- a/glue/tests/visual/py311-test-visual.json +++ b/glue/tests/visual/py311-test-visual.json @@ -1,11 +1,11 @@ { - "glue.viewers.histogram.tests.test_viewer.test_simple_viewer": "cb08123fbad135ab614bb7ec13475fcc83321057d884fe80c3a32970b2d14762", - "glue.viewers.image.tests.test_viewer.test_simple_viewer": "72abd60b484d14f721254f027bb0ab9b36245d5db77eb87693f4dd9998fd28be", - "glue.viewers.image.tests.test_viewer.test_region_layer": "0114922ab0a3980f56252656c69545927841aea0e6950250cdc2b1bafcd19d50", - "glue.viewers.image.tests.test_viewer.test_region_layer_flip": "a142142f34961aba7e98188ad43abafe0e6e5b82e13e8cdab5131d297ed5832c", - "glue.viewers.profile.tests.test_viewer.test_simple_viewer": "f68a21be5080fec513388b2d2b220512e7b0df5498e2489da54e58708de435b3", - "glue.viewers.scatter.tests.test_viewer.test_simple_viewer": "1020a7bd3abe40510b9e03047c3b423b75c3c64ac18e6dcd6257173cec1ed53f", + "glue.viewers.histogram.tests.test_viewer.test_simple_histogram_viewer": "cb08123fbad135ab614bb7ec13475fcc83321057d884fe80c3a32970b2d14762", + "glue.viewers.image.tests.test_viewer.test_simple_image_viewer": "72abd60b484d14f721254f027bb0ab9b36245d5db77eb87693f4dd9998fd28be", + "glue.viewers.image.tests.test_viewer.test_image_region_layer": "0114922ab0a3980f56252656c69545927841aea0e6950250cdc2b1bafcd19d50", + "glue.viewers.image.tests.test_viewer.test_image_region_layer_flip": "a142142f34961aba7e98188ad43abafe0e6e5b82e13e8cdab5131d297ed5832c", + "glue.viewers.profile.tests.test_viewer.test_simple_profile_viewer": "f68a21be5080fec513388b2d2b220512e7b0df5498e2489da54e58708de435b3", + "glue.viewers.scatter.tests.test_viewer.test_simple_scatter_viewer": "1020a7bd3abe40510b9e03047c3b423b75c3c64ac18e6dcd6257173cec1ed53f", "glue.viewers.scatter.tests.test_viewer.test_scatter_density_map": "3379d655262769a6ccbdbaf1970bffa9237adbec23a93d3ab75da51b9a3e7f8b", - "glue.viewers.image.tests.test_viewer.TestWCSRegionDisplay.test_wcs_viewer": "651e0d954c6b77becb7064de24f5101b9f2882adabc1d5aedbc183b9762c59b1", - "glue.viewers.image.tests.test_viewer.TestWCSRegionDisplay.test_flipped_wcs_viewer": "fcc18a1398d1f3f61b6989a722402cde9365a34483eedf8eac222647e20eb8ab" + "glue.viewers.image.tests.test_viewer.TestWCSRegionDisplay.test_image_wcs_viewer": "651e0d954c6b77becb7064de24f5101b9f2882adabc1d5aedbc183b9762c59b1", + "glue.viewers.image.tests.test_viewer.TestWCSRegionDisplay.test_image_flipped_wcs_viewer": "fcc18a1398d1f3f61b6989a722402cde9365a34483eedf8eac222647e20eb8ab" } diff --git a/glue/viewers/histogram/tests/test_viewer.py b/glue/viewers/histogram/tests/test_viewer.py index 82eb34439..2fff424a9 100644 --- a/glue/viewers/histogram/tests/test_viewer.py +++ b/glue/viewers/histogram/tests/test_viewer.py @@ -11,7 +11,7 @@ @visual_test -def test_simple_viewer(): +def test_simple_histogram_viewer(): # Make sure the simple viewer can be instantiated diff --git a/glue/viewers/image/tests/test_viewer.py b/glue/viewers/image/tests/test_viewer.py index 7360814d6..b174603b1 100644 --- a/glue/viewers/image/tests/test_viewer.py +++ b/glue/viewers/image/tests/test_viewer.py @@ -14,7 +14,7 @@ @visual_test -def test_simple_viewer(): +def test_simple_image_viewer(): # Make sure the simple viewer can be instantiated @@ -35,7 +35,7 @@ def test_simple_viewer(): @visual_test -def test_region_layer(): +def test_image_region_layer(): poly_1 = Polygon([(20, 20), (60, 20), (60, 40), (20, 40)]) poly_2 = Polygon([(60, 50), (60, 70), (80, 70), (80, 50)]) poly_3 = Polygon([(10, 10), (15, 10), (15, 15), (10, 15)]) @@ -123,7 +123,7 @@ def test_region_layer_logic(): @visual_test -def test_region_layer_flip(): +def test_image_region_layer_flip(): poly_1 = Polygon([(20, 20), (60, 20), (60, 40), (20, 40)]) poly_2 = Polygon([(60, 50), (60, 70), (80, 70), (80, 50)]) poly_3 = Polygon([(10, 10), (15, 10), (15, 15), (10, 15)]) @@ -218,7 +218,7 @@ def test_wcs_viewer_good_link(self): assert self.viewer.layers[1].enabled @visual_test - def test_wcs_viewer(self): + def test_image_wcs_viewer(self): self.viewer.add_data(self.image1) link1 = LinkSame(self.region_data.center_x_id, self.image1.world_component_ids[1]) @@ -237,7 +237,7 @@ def test_wcs_viewer(self): return self.viewer.figure @visual_test - def test_flipped_wcs_viewer(self): + def test_image_flipped_wcs_viewer(self): self.viewer.add_data(self.image1) link1 = LinkSame(self.region_data.center_x_id, self.image1.world_component_ids[1]) diff --git a/glue/viewers/profile/tests/test_viewer.py b/glue/viewers/profile/tests/test_viewer.py index b57c6b5d5..f65127845 100644 --- a/glue/viewers/profile/tests/test_viewer.py +++ b/glue/viewers/profile/tests/test_viewer.py @@ -15,7 +15,7 @@ @visual_test -def test_simple_viewer(): +def test_simple_profile_viewer(): # Make sure the simple viewer can be instantiated diff --git a/glue/viewers/scatter/tests/test_viewer.py b/glue/viewers/scatter/tests/test_viewer.py index ad0a3080c..0e6e5df52 100644 --- a/glue/viewers/scatter/tests/test_viewer.py +++ b/glue/viewers/scatter/tests/test_viewer.py @@ -13,7 +13,7 @@ @visual_test -def test_simple_viewer(): +def test_simple_scatter_viewer(): # Make sure the simple viewer can be instantiated