From 7e7f5028d4bd67e85dbae087596c0f287e31626f Mon Sep 17 00:00:00 2001 From: "Marco Trevisan (TreviƱo)" Date: Thu, 5 Sep 2024 04:04:47 +0200 Subject: tests/pam: Call overridden parent methods This is the expected practice when overriding --- tests/pam/test_pam_fprintd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pam/test_pam_fprintd.py b/tests/pam/test_pam_fprintd.py index 6788444..54943e4 100644 --- a/tests/pam/test_pam_fprintd.py +++ b/tests/pam/test_pam_fprintd.py @@ -55,6 +55,8 @@ class TestPamFprintd(dbusmock.DBusTestCase): @classmethod def setUpClass(klass): + dbusmock.DBusTestCase.setUpClass() + klass.start_system_bus() klass.start_monitor() klass.dbus_con = klass.get_dbus(True) @@ -75,6 +77,7 @@ class TestPamFprintd(dbusmock.DBusTestCase): dbusmock.DBusTestCase.tearDownClass() def setUp(self): + super().setUp() (self.p_mock, self.obj_fprintd_manager) = self.spawn_server_template( self.template_name, {}) self.obj_fprintd_mock = dbus.Interface(self.obj_fprintd_manager, 'net.reactivated.Fprint.Manager.Mock') @@ -82,6 +85,7 @@ class TestPamFprintd(dbusmock.DBusTestCase): def tearDown(self): self.p_mock.terminate() self.p_mock.wait() + super().tearDown() def setup_device(self): device_path = self.obj_fprintd_mock.AddDevice('FDO Trigger Finger Laser Reader', 3, 'swipe', False) -- cgit v1.2.3