cubicweb/dataimport/test/test_stores.py
branch3.25
changeset 12146 d540defa0591
parent 11763 39df042f4ab4
--- a/cubicweb/dataimport/test/test_stores.py	Tue Apr 04 17:43:56 2017 +0200
+++ b/cubicweb/dataimport/test/test_stores.py	Wed Apr 05 14:59:09 2017 +0200
@@ -80,7 +80,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 stores.NoHookRQLObjectStore(cnx, metagen)