equal
deleted
inserted
replaced
141 def terminate_slapd(cls): |
141 def terminate_slapd(cls): |
142 terminate_slapd(cls) |
142 terminate_slapd(cls) |
143 |
143 |
144 @classmethod |
144 @classmethod |
145 def pre_setup_database(cls, cnx, config): |
145 def pre_setup_database(cls, cnx, config): |
146 if sys.version_info[:2] >= (3, 7): |
|
147 raise unittest.SkipTest( |
|
148 'ldapfeed is not currently compatible with Python 3.7') |
|
149 cnx.create_entity('CWSource', name=u'ldap', type=u'ldapfeed', parser=u'ldapfeed', |
146 cnx.create_entity('CWSource', name=u'ldap', type=u'ldapfeed', parser=u'ldapfeed', |
150 url=URL, config=CONFIG_LDAPFEED) |
147 url=URL, config=CONFIG_LDAPFEED) |
151 |
|
152 cnx.commit() |
148 cnx.commit() |
153 return cls.pull(cnx) |
149 return cls.pull(cnx) |
154 |
150 |
155 @staticmethod |
151 @staticmethod |
156 def pull(cnx): |
152 def pull(cnx): |