Commits

adamv committed a061dfb

Missing import of 'time' module; tweak settings and dbsettings for tests.

  • Participants
  • Parent commits d8e2dd2

Comments (0)

Files changed (3)

File source/sqlserver_ado/creation.py

             # connected to it.
             cursor = self.connection.cursor()
             self.set_autocommit()
+            import time
             time.sleep(1) # To avoid "database is being accessed by other users" errors.
             self._disable_transactions()
             cursor.execute("DROP DATABASE %s" % self.connection.ops.quote_name(test_database_name))

File tests/dbsettings.py

 DATABASE_PORT = ''
 DATABASE_NAME = r'django_test_backend'
 
-# Don't create a test database; use use the name above.
-TEST_DATABASE_CREATE = False
-
 # Use integrated auth.
 DATABASE_USER = ''
 DATABASE_PASSWORD = ''

File tests/test_main/settings.py

 INSTALLED_APPS = (
     'apitest',
     'regressiontests',
-	'slicing',
-	'nulls',
-	'aggregates',
+    'slicing',
+    'nulls',
+    'aggregates',
 )