summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2024-09-05 04:04:47 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2024-09-05 04:07:04 +0200
commit7e7f5028d4bd67e85dbae087596c0f287e31626f (patch)
treec0fdddaf514afd4b7319e305fea3682ee45c1997
parent64ad4b7fc95db28918c7512836dccb0d973d6f2b (diff)
tests/pam: Call overridden parent methodsHEADmaster
This is the expected practice when overriding
-rw-r--r--tests/pam/test_pam_fprintd.py4
1 files changed, 4 insertions, 0 deletions
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)