cubicweb/server/test/unittest_ldapsource.py
branch3.26
changeset 12903 4ebfdf607b49
parent 12618 3f125fdbcd70
equal deleted inserted replaced
12902:5c35b94debfc 12903:4ebfdf607b49
   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):