Ticket #10716: creation.py.SVN.patch
File creation.py.SVN.patch, 1.9 KB (added by , 16 years ago) |
---|
-
creation.py
old new 56 56 'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP, 57 57 } 58 58 59 self.remember['name'] = settings.DATABASE_NAME 59 60 self.remember['user'] = settings.DATABASE_USER 60 61 self.remember['passwd'] = settings.DATABASE_PASSWORD 61 62 … … 108 109 print "Tests cancelled." 109 110 sys.exit(1) 110 111 112 settings.DATABASE_NAME = self.connection.settings_dict["DATABASE_NAME"] = TEST_DATABASE_NAME 111 113 settings.DATABASE_USER = self.connection.settings_dict["DATABASE_USER"] = TEST_DATABASE_USER 112 114 settings.DATABASE_PASSWORD = self.connection.settings_dict["DATABASE_PASSWORD"] = TEST_DATABASE_PASSWD 113 115 … … 124 126 TEST_DATABASE_TBLSPACE = self._test_database_tblspace(settings) 125 127 TEST_DATABASE_TBLSPACE_TMP = self._test_database_tblspace_tmp(settings) 126 128 129 settings.DATABASE_NAME = self.connection.settings_dict["DATABASE_NAME"] = self.remember['name'] 127 130 settings.DATABASE_USER = self.connection.settings_dict["DATABASE_USER"] = self.remember['user'] 128 131 settings.DATABASE_PASSWORD = self.connection.settings_dict["DATABASE_PASSWORD"] = self.remember['passwd'] 129 132 … … 135 138 'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP, 136 139 } 137 140 141 self.remember['name'] = settings.DATABASE_NAME 138 142 self.remember['user'] = settings.DATABASE_USER 139 143 self.remember['passwd'] = settings.DATABASE_PASSWORD 140 144 … … 244 248 raise 245 249 return name 246 250 247 def _test_database_user(self, ettings):248 name = TEST_DATABASE_PREFIX + settings.DATABASE_ NAME251 def _test_database_user(self, settings): 252 name = TEST_DATABASE_PREFIX + settings.DATABASE_USER 249 253 try: 250 254 if settings.TEST_DATABASE_USER: 251 255 name = settings.TEST_DATABASE_USER