comparison tests/test_db.py @ 51:2733871775cd

More unit tests.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 31 Jan 2013 12:28:10 -0800
parents fb6ae96756c1
children ebb12ff21cb2
comparison
equal deleted inserted replaced
50:350f7f084028 51:2733871775cd
29 MockFileSystem.save_structure(self.root, structure) 29 MockFileSystem.save_structure(self.root, structure)
30 wiki = self.getWiki( 30 wiki = self.getWiki(
31 db_factory=self._dbFactory, 31 db_factory=self._dbFactory,
32 fs_factory=self._fsFactory 32 fs_factory=self._fsFactory
33 ) 33 )
34
35 # Open the DB before we do anything so that it will be closed
36 # only on `tearDown` (memory DBs are discarded when the
37 # connection is closed.
34 wiki.db.open() 38 wiki.db.open()
39
35 wiki.start() 40 wiki.start()
36 return wiki 41 return wiki
37 42
38 def _fsFactory(self, config): 43 def _fsFactory(self, config):
39 return FileSystem(self.root) 44 return FileSystem(self.root)