Skip to content

Commit

Permalink
We only need to set up/tear down the application once.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Dec 22, 2024
1 parent 9820365 commit 63f06d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions glue_ar/qt/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) == "<qt>Integer callback property</qt>"
Expand Down

0 comments on commit 63f06d8

Please sign in to comment.