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') |
151 cnx.create_entity('CWSource', name=u'ldap', type=u'ldapfeed', parser=u'ldapfeed', |
154 cnx.create_entity('CWSource', name=u'ldap', type=u'ldapfeed', parser=u'ldapfeed', |
152 url=URL, config=CONFIG_LDAPFEED) |
155 url=URL, config=CONFIG_LDAPFEED) |
153 |
156 |
154 cnx.commit() |
157 cnx.commit() |
155 return cls.pull(cnx) |
158 return cls.pull(cnx) |