From 63f06d89f86fac027d674504acbcf1837ee512fc Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Sun, 22 Dec 2024 13:28:47 -0500 Subject: [PATCH] We only need to set up/tear down the application once. --- glue_ar/qt/tests/test_widgets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glue_ar/qt/tests/test_widgets.py b/glue_ar/qt/tests/test_widgets.py index f0022b2..62ba12f 100644 --- a/glue_ar/qt/tests/test_widgets.py +++ b/glue_ar/qt/tests/test_widgets.py @@ -15,11 +15,11 @@ class TestQtWidgets: - def setup_method(self, method): - self.app = QApplication(sys.argv) + def setup_class(cls): + cls.app = QApplication(sys.argv) - def teardown_method(self, method): - self.app.quit() + def teardown_class(cls): + cls.app.quit() def test_info_tooltip(self): assert info_tooltip(DummyState.cb_int) == "Integer callback property"