1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

selftest: make get_loadparm a classmethod

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Rob van der Linde 2023-12-13 14:00:00 +13:00 committed by Douglas Bagnall
parent 9f8786f0ed
commit 18fd2e4ff3

View File

@ -193,7 +193,8 @@ class TestCase(unittest.TestCase):
samba.set_debug_level(test_debug_level)
self.addCleanup(samba.set_debug_level, test_debug_level)
def get_loadparm(self):
@classmethod
def get_loadparm(cls):
return env_loadparm()
def get_credentials(self):