Made main user disconnect after creating test user/tablespaces on Oracle

This commit is contained in:
Shai Berger 2014-08-25 20:17:13 +03:00
parent e0cf030194
commit 4c85a0d95f
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ class DatabaseCreation(BaseDatabaseCreation):
print("Tests cancelled.") print("Tests cancelled.")
sys.exit(1) sys.exit(1)
self.connection.close() # done with main user -- test user and tablespaces created
real_settings = settings.DATABASES[self.connection.alias] 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_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'] real_settings['SAVED_PASSWORD'] = self.connection.settings_dict['SAVED_PASSWORD'] = self.connection.settings_dict['PASSWORD']