Skip to content

Commit 06ec106

Browse files
author
Alexander Smishlajev
committed
rdbms settings are now common for all backends.
remove old PostgreSQL-specific setting (not allowed by new config). add vim modeline.
1 parent fc96d15 commit 06ec106

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/test_postgresql.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@
1414
# FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17-
#
18-
# $Id: test_postgresql.py,v 1.10 2004-05-23 09:44:47 richard Exp $
17+
#
18+
# $Id: test_postgresql.py,v 1.11 2004-09-25 15:50:36 a1s Exp $
1919

2020
import unittest
2121

2222
from roundup.hyperdb import DatabaseError
2323

2424
from db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest
2525

26-
# Postgresql connection data
27-
# NOTE: THIS MUST BE A LOCAL DATABASE
28-
config.POSTGRESQL_DATABASE = {'database': 'rounduptest'}
29-
3026
from roundup import backends
3127

3228
class postgresqlOpener:
@@ -84,7 +80,6 @@ def tearDown(self):
8480

8581
class postgresqlClassicInitTest(postgresqlOpener, ClassicInitTest):
8682
backend = 'postgresql'
87-
extra_config = "POSTGRESQL_DATABASE = %r"%config.POSTGRESQL_DATABASE
8883
def setUp(self):
8984
postgresqlOpener.setUp(self)
9085
ClassicInitTest.setUp(self)
@@ -122,3 +117,4 @@ def test_suite():
122117
suite.addTest(unittest.makeSuite(postgresqlSessionTest))
123118
return suite
124119

120+
# vim: set et sts=4 sw=4 :

0 commit comments

Comments
 (0)