mirror of
https://github.com/samba-team/samba.git
synced 2025-10-15 07:33:15 +03:00
tests: Pass the test context as lp_ctx for messaging tests
Change-Id: I1acf5c42b21465a8c45549039f0054414b8f31d1 Signed-off-by: Matthieu Patou <mat@matws.net>
This commit is contained in:
committed by
Andrew Bartlett
parent
3e2d4199c3
commit
3783f49abd
@@ -18,7 +18,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
"""Tests for samba.messaging."""
|
"""Tests for samba.messaging."""
|
||||||
|
import samba
|
||||||
from samba.messaging import Messaging
|
from samba.messaging import Messaging
|
||||||
from samba.tests import TestCase
|
from samba.tests import TestCase
|
||||||
from samba.dcerpc.server_id import server_id
|
from samba.dcerpc.server_id import server_id
|
||||||
@@ -26,6 +26,7 @@ from samba.dcerpc.server_id import server_id
|
|||||||
class MessagingTests(TestCase):
|
class MessagingTests(TestCase):
|
||||||
|
|
||||||
def get_context(self, *args, **kwargs):
|
def get_context(self, *args, **kwargs):
|
||||||
|
kwargs['lp_ctx'] = samba.tests.env_loadparm()
|
||||||
return Messaging(*args, **kwargs)
|
return Messaging(*args, **kwargs)
|
||||||
|
|
||||||
def test_register(self):
|
def test_register(self):
|
||||||
|
Reference in New Issue
Block a user