equal
deleted
inserted
replaced
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 |