Skip to content

Commit

Permalink
added and use SlapdTestCase.server_class
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Apr 26, 2017
1 parent 2ce408c commit 2a19d61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/slapd.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ class SlapdTestCase(unittest.TestCase):
test class which also clones or initializes a running slapd
"""

server_class = SlapdObject
server = None

def _open_ldap_conn(self, who=None, cred=None):
Expand All @@ -398,7 +399,7 @@ def _open_ldap_conn(self, who=None, cred=None):
@classmethod
def setUpClass(cls):
if cls.server is None:
cls.server = SlapdObject()
cls.server = cls.server_class()
cls.server.start()
cls.server = cls.server

Expand Down

0 comments on commit 2a19d61

Please sign in to comment.