From 68f81acdeb8cef12c3f3a0a5049c1a0c7f371023 Mon Sep 17 00:00:00 2001 From: Martin Yeo Date: Wed, 13 Mar 2024 17:31:59 +0000 Subject: [PATCH] 7c4f7003a --- lib/iris/tests/test_plot.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/iris/tests/test_plot.py b/lib/iris/tests/test_plot.py index 12509b4707..a2d3b3616c 100644 --- a/lib/iris/tests/test_plot.py +++ b/lib/iris/tests/test_plot.py @@ -242,13 +242,16 @@ def setUp(self): @tests.skip_data @tests.skip_plot class Test1dScatter: + @pytest.fixture(autouse=True) + def set_draw_method(self): + self.draw_method = iplt.scatter + @pytest.fixture(autouse=True) def setup(self, check_graphic_caller): self.cube = iris.load_cube( tests.get_data_path(("NAME", "NAMEIII_trajectory.txt")), "Temperature", ) - self.draw_method = iplt.scatter self.check_graphic = check_graphic_caller def test_coord_coord(self): @@ -294,12 +297,8 @@ def test_cube_cube(self): @tests.skip_data @tests.skip_plot class Test1dQuickplotScatter(Test1dScatter): - def setUp(self): - tests.GraphicsTest.setUp(self) - self.cube = iris.load_cube( - tests.get_data_path(("NAME", "NAMEIII_trajectory.txt")), - "Temperature", - ) + @pytest.fixture(autouse=True) + def set_draw_method(self): self.draw_method = qplt.scatter