cubicweb/devtools/fake.py
changeset 12034 e7e469d0539b
parent 12027 c62c80f20a82
child 12035 2fcb9339f69a
equal deleted inserted replaced
12033:1ce12b716e71 12034:e7e469d0539b
   181         self.schema = schema
   181         self.schema = schema
   182         self.config = config or FakeConfig()
   182         self.config = config or FakeConfig()
   183         self.vreg = vreg or FakeCWRegistryStore(self.config, initlog=False)
   183         self.vreg = vreg or FakeCWRegistryStore(self.config, initlog=False)
   184         self.vreg.schema = schema
   184         self.vreg.schema = schema
   185 
   185 
   186     def internal_session(self):
       
   187         return FakeSession(self)
       
   188 
       
   189 
   186 
   190 class FakeSource(object):
   187 class FakeSource(object):
   191     dbhelper = get_db_helper('sqlite')
   188     dbhelper = get_db_helper('sqlite')
   192     def __init__(self, uri):
   189     def __init__(self, uri):
   193         self.uri = uri
   190         self.uri = uri