cubicweb/server/test/unittest_ldapsource.py
branch3.27
changeset 12896 d18bd998852c
parent 12626 32ee89340e59
equal deleted inserted replaced
12895:5a9d1e64f505 12896:d18bd998852c
   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):