Mercurial > p > roundup > code
comparison test/test_db.py @ 1156:d0da32fbdedc
gadfly backend now complete
can handle schema changes in non-Multilinks (though only one at a time
at present)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 16 Sep 2002 08:04:46 +0000 |
| parents | c7119e74fcf8 |
| children | 14467c765167 |
comparison
equal
deleted
inserted
replaced
| 1155:5cf0a6b6e787 | 1156:d0da32fbdedc |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: test_db.py,v 1.46 2002-09-13 08:20:13 richard Exp $ | 18 # $Id: test_db.py,v 1.47 2002-09-16 08:04:46 richard Exp $ |
| 19 | 19 |
| 20 import unittest, os, shutil, time | 20 import unittest, os, shutil, time |
| 21 | 21 |
| 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ | 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ |
| 23 Interval, DatabaseError, Boolean, Number | 23 Interval, DatabaseError, Boolean, Number |
| 574 def testIDGeneration(self): | 574 def testIDGeneration(self): |
| 575 id1 = self.db.issue.create(title="spam", status='1') | 575 id1 = self.db.issue.create(title="spam", status='1') |
| 576 id2 = self.db.issue.create(title="eggs", status='2') | 576 id2 = self.db.issue.create(title="eggs", status='2') |
| 577 self.assertNotEqual(id1, id2) | 577 self.assertNotEqual(id1, id2) |
| 578 | 578 |
| 579 def testNewProperty(self): | |
| 580 # gadfly doesn't have an ALTER TABLE command :( | |
| 581 pass | |
| 582 | |
| 583 class gadflyReadOnlyDBTestCase(anydbmReadOnlyDBTestCase): | 579 class gadflyReadOnlyDBTestCase(anydbmReadOnlyDBTestCase): |
| 584 def setUp(self): | 580 def setUp(self): |
| 585 from roundup.backends import gadfly | 581 from roundup.backends import gadfly |
| 586 # remove previous test, ignore errors | 582 # remove previous test, ignore errors |
| 587 if os.path.exists(config.DATABASE): | 583 if os.path.exists(config.DATABASE): |
