cubicweb/dataimport/test/test_massive_store.py
branch3.25
changeset 12146 d540defa0591
parent 11911 37726f66ff82
child 12171 970c32a4c7b7
--- a/cubicweb/dataimport/test/test_massive_store.py	Tue Apr 04 17:43:56 2017 +0200
+++ b/cubicweb/dataimport/test/test_massive_store.py	Wed Apr 05 14:59:09 2017 +0200
@@ -45,7 +45,7 @@
     def store_impl(self, cnx):
         source = cnx.create_entity('CWSource', type=u'datafeed', name=u'test', url=u'test')
         cnx.commit()
-        metagen = stores.MetadataGenerator(cnx, source=cnx.repo.sources_by_eid[source.eid])
+        metagen = stores.MetadataGenerator(cnx, source=cnx.repo.source_by_eid(source.eid))
         return MassiveObjectStore(cnx, metagen=metagen)