[1.7.x] Made main user disconnect after creating test user/tablespaces on Oracle
Backport of 4c85a0d95f
from master
This commit is contained in:
parent
187ee0a4ac
commit
5d2b4669e8
|
@ -116,6 +116,8 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||
print("Tests cancelled.")
|
||||
sys.exit(1)
|
||||
|
||||
self.connection.close() # done with main user -- test user and tablespaces created
|
||||
|
||||
real_settings = settings.DATABASES[self.connection.alias]
|
||||
real_settings['SAVED_USER'] = self.connection.settings_dict['SAVED_USER'] = self.connection.settings_dict['USER']
|
||||
real_settings['SAVED_PASSWORD'] = self.connection.settings_dict['SAVED_PASSWORD'] = self.connection.settings_dict['PASSWORD']
|
||||
|
|
Loading…
Reference in New Issue