Mercurial > p > roundup > code
comparison test/test_indexer.py @ 1873:f63aa57386b0
Backend improvements.
- using Zope3's test runner now, allowing GC checks, nicer controls and
coverage analysis
- all RDMBS backends now have indexes on several columns
- added testing of schema mutation, fixed rdbms backends handling of a
couple of cases
- !BETA! added postgresql backend, needs work !BETA!
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 25 Oct 2003 22:53:26 +0000 |
| parents | 9b910e8d987d |
| children | 93f03c6714d8 |
comparison
equal
deleted
inserted
replaced
| 1872:c085b4f4f0c0 | 1873:f63aa57386b0 |
|---|---|
| 16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 19 # SOFTWARE. | 19 # SOFTWARE. |
| 20 | 20 |
| 21 # $Id: test_indexer.py,v 1.2 2002-09-10 00:19:54 richard Exp $ | 21 # $Id: test_indexer.py,v 1.3 2003-10-25 22:53:26 richard Exp $ |
| 22 | 22 |
| 23 import os, unittest, shutil | 23 import os, unittest, shutil |
| 24 | 24 |
| 25 from roundup.indexer import Indexer | 25 from roundup.indexer import Indexer |
| 26 | 26 |
| 47 self.dex.save_index() | 47 self.dex.save_index() |
| 48 | 48 |
| 49 def tearDown(self): | 49 def tearDown(self): |
| 50 shutil.rmtree('test-index') | 50 shutil.rmtree('test-index') |
| 51 | 51 |
| 52 def suite(): | 52 def test_suite(): |
| 53 return unittest.makeSuite(IndexerTest) | 53 suite = unittest.TestSuite() |
| 54 suite.addTest(unittest.makeSuite(IndexerTest)) | |
| 55 return suite | |
| 54 | 56 |
| 57 if __name__ == '__main__': | |
| 58 runner = unittest.TextTestRunner() | |
| 59 unittest.main(testRunner=runner) | |
| 55 | 60 |
| 56 # vim: set filetype=python ts=4 sw=4 et si | 61 # vim: set filetype=python ts=4 sw=4 et si |
