Ticket #10716: creation.py.102.patch

File creation.py.102.patch, 1.6 KB (added by CanariX, 16 years ago)

Patch for 1.0.2

  • creation.py

    old new  
    5656            'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP,
    5757        }
    5858
     59        self.remember['name'] = settings.DATABASE_NAME
    5960        self.remember['user'] = settings.DATABASE_USER
    6061        self.remember['passwd'] = settings.DATABASE_PASSWORD
    6162
     
    108109                    print "Tests cancelled."
    109110                    sys.exit(1)
    110111
     112        settings.DATABASE_NAME = TEST_DATABASE_NAME
    111113        settings.DATABASE_USER = TEST_DATABASE_USER
    112114        settings.DATABASE_PASSWORD = TEST_DATABASE_PASSWD
    113115
     
    124126        TEST_DATABASE_TBLSPACE = self._test_database_tblspace(settings)
    125127        TEST_DATABASE_TBLSPACE_TMP = self._test_database_tblspace_tmp(settings)
    126128
     129        settings.DATABASE_NAME = self.remember['name']
    127130        settings.DATABASE_USER = self.remember['user']
    128131        settings.DATABASE_PASSWORD = self.remember['passwd']
    129132
     
    135138            'tblspace_temp': TEST_DATABASE_TBLSPACE_TMP,
    136139        }
    137140
     141        self.remember['name'] = settings.DATABASE_NAME
    138142        self.remember['user'] = settings.DATABASE_USER
    139143        self.remember['passwd'] = settings.DATABASE_PASSWORD
    140144
     
    244248            raise
    245249        return name
    246250
    247     def _test_database_user(self, ettings):
    248         name = TEST_DATABASE_PREFIX + settings.DATABASE_NAME
     251    def _test_database_user(self, settings):
     252        name = TEST_DATABASE_PREFIX + settings.DATABASE_USER
    249253        try:
    250254            if settings.TEST_DATABASE_USER:
    251255                name = settings.TEST_DATABASE_USER
Back to Top