Mercurial > p > roundup > code
comparison test/test_postgresql.py @ 1920:f9316d2cd5ba
Fixed retirement of items in rdbms imports [SF#841355]
Fixed bug in looking up journal of newly-created items in *dbm backends
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 14 Nov 2003 00:11:19 +0000 |
| parents | f255363e6d97 |
| children | b1704ba7be41 |
comparison
equal
deleted
inserted
replaced
| 1919:e90072582d41 | 1920:f9316d2cd5ba |
|---|---|
| 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_postgresql.py,v 1.3 2003-11-11 11:19:18 richard Exp $ | 18 # $Id: test_postgresql.py,v 1.4 2003-11-14 00:11:19 richard Exp $ |
| 19 | 19 |
| 20 import sys, unittest, os, shutil, time, popen2 | 20 import sys, unittest, os, shutil, time, popen2 |
| 21 | 21 |
| 22 from roundup.hyperdb import DatabaseError | 22 from roundup.hyperdb import DatabaseError |
| 23 | 23 |
| 66 def setUp(self): | 66 def setUp(self): |
| 67 db_nuke(1) | 67 db_nuke(1) |
| 68 db_create() | 68 db_create() |
| 69 | 69 |
| 70 def tearDown(self): | 70 def tearDown(self): |
| 71 self.nuke_database() | |
| 72 | |
| 73 def nuke_database(self): | |
| 74 # clear out the database - easiest way is to nuke and re-created it | |
| 71 db_nuke() | 75 db_nuke() |
| 76 db_create() | |
| 72 | 77 |
| 73 class postgresqlDBTest(postgresqlOpener, DBTest): | 78 class postgresqlDBTest(postgresqlOpener, DBTest): |
| 74 def setUp(self): | 79 def setUp(self): |
| 75 postgresqlOpener.setUp(self) | 80 postgresqlOpener.setUp(self) |
| 76 DBTest.setUp(self) | 81 DBTest.setUp(self) |
