From 0e13811a4b5cee0911a666c868d24e815d666cd7 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 7 Feb 2023 12:14:31 +0100 Subject: [PATCH] test-client: drop unused NmTestBase base class The base class is not used, and it's not clear that it would be useful. Sure, we could extend "test-client.py" will various non-nmcli tests. That might make sense. And then it might make sense to have more unit test classes. So far, we don't need that. Drop the unused base class NmTestBase. (cherry picked from commit d1e6d530130fd06a83ea440a5b244f0c68fcfd2f) --- src/tests/client/test-client.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py index 15f450af7..dc8252ce7 100755 --- a/src/tests/client/test-client.py +++ b/src/tests/client/test-client.py @@ -740,20 +740,18 @@ class AsyncProcess: ############################################################################### -class NmTestBase(unittest.TestCase): +MAX_JOBS = 15 + + +class TestNmcli(unittest.TestCase): def __init__(self, *args, **kwargs): self._calling_num = {} self._skip_test_for_l10n_diff = [] self._async_jobs = [] self._results = [] self.srv = None - return unittest.TestCase.__init__(self, *args, **kwargs) + unittest.TestCase.__init__(self, *args, **kwargs) - -MAX_JOBS = 15 - - -class TestNmcli(NmTestBase): def srv_start(self): self.srv_shutdown() self.srv = NMStubServer(self._testMethodName)