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