From 8dec52e851c4cd8fcdd29702b95fad039fcedf2a Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 25 Jul 2012 13:39:50 -0400 Subject: One more refactoring. --- src/mailman/database/postgresql.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mailman/database/postgresql.py') diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py index e7c40407a..1d1abca9e 100644 --- a/src/mailman/database/postgresql.py +++ b/src/mailman/database/postgresql.py @@ -34,7 +34,7 @@ from mailman.database.base import StormBaseDatabase -class _TemporaryDB: +class _TestDB: # For the test suite; bool column values. TRUE = 'True' FALSE = 'False' @@ -86,7 +86,7 @@ class PostgreSQLDatabase(StormBaseDatabase): """.format(model_class.__storm_table__)) @staticmethod - def _make_temporary(): + def _make_testdb(): from mailman.testing.helpers import configuration parts = urlsplit(config.database.url) assert parts.scheme == 'postgres' @@ -98,8 +98,8 @@ class PostgreSQLDatabase(StormBaseDatabase): # after the test. config.db.store.execute('ABORT;') config.db.store.execute('CREATE DATABASE mmtest;') - # Now create a new, temporary database. + # Now create a new, test database. database = PostgreSQLDatabase() with configuration('database', url=url): database.initialize() - return _TemporaryDB(database) + return _TestDB(database) -- cgit v1.2.3-70-g09d2