cubicweb/dataimport/test/test_stores.py
branch3.25
changeset 12146 d540defa0591
parent 11763 39df042f4ab4
equal deleted inserted replaced
12145:752b94ed9748 12146:d540defa0591
    78     user_extid = b'http://somewhere.com/user/1'
    78     user_extid = b'http://somewhere.com/user/1'
    79 
    79 
    80     def store_impl(self, cnx):
    80     def store_impl(self, cnx):
    81         source = cnx.create_entity('CWSource', type=u'datafeed', name=u'test', url=u'test')
    81         source = cnx.create_entity('CWSource', type=u'datafeed', name=u'test', url=u'test')
    82         cnx.commit()
    82         cnx.commit()
    83         metagen = stores.MetadataGenerator(cnx, source=cnx.repo.sources_by_eid[source.eid])
    83         metagen = stores.MetadataGenerator(cnx, source=cnx.repo.source_by_eid(source.eid))
    84         return stores.NoHookRQLObjectStore(cnx, metagen)
    84         return stores.NoHookRQLObjectStore(cnx, metagen)
    85 
    85 
    86 
    86 
    87 class MetaGeneratorTC(CubicWebTC):
    87 class MetaGeneratorTC(CubicWebTC):
    88     metagenerator_impl = stores.MetaGenerator
    88     metagenerator_impl = stores.MetaGenerator