summaryrefslogtreecommitdiff
path: root/tests/migrations/test_multidb.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-11-09 19:09:36 -0500
committerGitHub <noreply@github.com>2018-11-09 19:09:36 -0500
commitf82be9ebc79e30fef796bbc61fec4b9694cb779f (patch)
treec4a5907223c04a3f005612543abea418234afe5c /tests/migrations/test_multidb.py
parentf9ff1df1daac8ae1fc22b27f48735148cb5488dd (diff)
Fixed #29934 -- Added sqlparse as a require dependency.
Diffstat (limited to 'tests/migrations/test_multidb.py')
-rw-r--r--tests/migrations/test_multidb.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/migrations/test_multidb.py b/tests/migrations/test_multidb.py
index 16cd8f33d1..0bed042964 100644
--- a/tests/migrations/test_multidb.py
+++ b/tests/migrations/test_multidb.py
@@ -1,16 +1,9 @@
-import unittest
-
from django.db import connection, migrations, models
from django.db.migrations.state import ProjectState
from django.test import override_settings
from .test_operations import OperationTestBase
-try:
- import sqlparse
-except ImportError:
- sqlparse = None
-
class AgnosticRouter:
"""
@@ -128,12 +121,10 @@ class MultiDBOperationTests(OperationTestBase):
else:
self.assertEqual(Pony.objects.count(), 0)
- @unittest.skipIf(sqlparse is None and connection.features.requires_sqlparse_for_splitting, "Missing sqlparse")
@override_settings(DATABASE_ROUTERS=[MigrateNothingRouter()])
def test_run_sql(self):
self._test_run_sql("test_mltdb_runsql", should_run=False)
- @unittest.skipIf(sqlparse is None and connection.features.requires_sqlparse_for_splitting, "Missing sqlparse")
@override_settings(DATABASE_ROUTERS=[MigrateWhenFooRouter()])
def test_run_sql2(self):
self._test_run_sql("test_mltdb_runsql2", should_run=False)