mirror of
https://github.com/django/django.git
synced 2024-12-25 18:46:22 +00:00
Fixed #10716 -- Fixed a couple of typos in Oracle testing setup.
Thanks, canarix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e9814029f5
commit
91fe5d50dd
@ -56,6 +56,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||||||
'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP,
|
'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.remember['name'] = settings.DATABASE_NAME
|
||||||
self.remember['user'] = settings.DATABASE_USER
|
self.remember['user'] = settings.DATABASE_USER
|
||||||
self.remember['passwd'] = settings.DATABASE_PASSWORD
|
self.remember['passwd'] = settings.DATABASE_PASSWORD
|
||||||
|
|
||||||
@ -108,6 +109,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||||||
print "Tests cancelled."
|
print "Tests cancelled."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
settings.DATABASE_NAME = self.connection.settings_dict["DATABASE_NAME"] = TEST_DATABASE_NAME
|
||||||
settings.DATABASE_USER = self.connection.settings_dict["DATABASE_USER"] = TEST_DATABASE_USER
|
settings.DATABASE_USER = self.connection.settings_dict["DATABASE_USER"] = TEST_DATABASE_USER
|
||||||
settings.DATABASE_PASSWORD = self.connection.settings_dict["DATABASE_PASSWORD"] = TEST_DATABASE_PASSWD
|
settings.DATABASE_PASSWORD = self.connection.settings_dict["DATABASE_PASSWORD"] = TEST_DATABASE_PASSWD
|
||||||
|
|
||||||
@ -124,6 +126,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||||||
TEST_DATABASE_TBLSPACE = self._test_database_tblspace(settings)
|
TEST_DATABASE_TBLSPACE = self._test_database_tblspace(settings)
|
||||||
TEST_DATABASE_TBLSPACE_TMP = self._test_database_tblspace_tmp(settings)
|
TEST_DATABASE_TBLSPACE_TMP = self._test_database_tblspace_tmp(settings)
|
||||||
|
|
||||||
|
settings.DATABASE_NAME = self.connection.settings_dict["DATABASE_NAME"] = self.remember['name']
|
||||||
settings.DATABASE_USER = self.connection.settings_dict["DATABASE_USER"] = self.remember['user']
|
settings.DATABASE_USER = self.connection.settings_dict["DATABASE_USER"] = self.remember['user']
|
||||||
settings.DATABASE_PASSWORD = self.connection.settings_dict["DATABASE_PASSWORD"] = self.remember['passwd']
|
settings.DATABASE_PASSWORD = self.connection.settings_dict["DATABASE_PASSWORD"] = self.remember['passwd']
|
||||||
|
|
||||||
@ -135,6 +138,7 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||||||
'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP,
|
'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.remember['name'] = settings.DATABASE_NAME
|
||||||
self.remember['user'] = settings.DATABASE_USER
|
self.remember['user'] = settings.DATABASE_USER
|
||||||
self.remember['passwd'] = settings.DATABASE_PASSWORD
|
self.remember['passwd'] = settings.DATABASE_PASSWORD
|
||||||
|
|
||||||
@ -244,8 +248,8 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||||||
raise
|
raise
|
||||||
return name
|
return name
|
||||||
|
|
||||||
def _test_database_user(self, ettings):
|
def _test_database_user(self, settings):
|
||||||
name = TEST_DATABASE_PREFIX + settings.DATABASE_NAME
|
name = TEST_DATABASE_PREFIX + settings.DATABASE_USER
|
||||||
try:
|
try:
|
||||||
if settings.TEST_DATABASE_USER:
|
if settings.TEST_DATABASE_USER:
|
||||||
name = settings.TEST_DATABASE_USER
|
name = settings.TEST_DATABASE_USER
|
||||||
|
Loading…
Reference in New Issue
Block a user