summaryrefslogtreecommitdiff
path: root/tests/regressiontests/initial_sql_regress/tests.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@rd.io>2012-11-04 10:16:06 -0800
committerAlex Gaynor <alex.gaynor@rd.io>2012-11-04 10:16:06 -0800
commit4285571c5a9bf6ca3cb7c4d774942b9ae5b537e4 (patch)
tree8969c90b79eeba64c1aacfd1e1f142364e18eacf /tests/regressiontests/initial_sql_regress/tests.py
parent249c3d730e632b3c5b8c2bf5e6e871d61df15c6c (diff)
Fixed #5805 -- it is now possible to specify multi-column indexes. Thanks to jgelens for the original patch.
Diffstat (limited to 'tests/regressiontests/initial_sql_regress/tests.py')
-rw-r--r--tests/regressiontests/initial_sql_regress/tests.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/regressiontests/initial_sql_regress/tests.py b/tests/regressiontests/initial_sql_regress/tests.py
index 03a91cb807..39d8921061 100644
--- a/tests/regressiontests/initial_sql_regress/tests.py
+++ b/tests/regressiontests/initial_sql_regress/tests.py
@@ -1,3 +1,6 @@
+from django.core.management.color import no_style
+from django.core.management.sql import custom_sql_for_model
+from django.db import connections, DEFAULT_DB_ALIAS
from django.test import TestCase
from .models import Simple
@@ -15,10 +18,6 @@ class InitialSQLTests(TestCase):
self.assertEqual(Simple.objects.count(), 0)
def test_custom_sql(self):
- from django.core.management.sql import custom_sql_for_model
- from django.core.management.color import no_style
- from django.db import connections, DEFAULT_DB_ALIAS
-
# Simulate the custom SQL loading by syncdb
connection = connections[DEFAULT_DB_ALIAS]
custom_sql = custom_sql_for_model(Simple, no_style(), connection)