浏览代码

Skip another test if sqlparse is not available

Refs #23426
Collin Anderson 10 年之前
父节点
当前提交
d6a87eefd8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/migrations/test_operations.py

+ 1 - 0
tests/migrations/test_operations.py

@@ -1195,6 +1195,7 @@ class OperationTests(OperationTestBase):
             operation.database_backwards("test_runsql", editor, new_state, project_state)
         self.assertTableNotExists("i_love_ponies")
 
+    @unittest.skipIf(sqlparse is None and connection.features.requires_sqlparse_for_splitting, "Missing sqlparse")
     def test_run_sql_params(self):
         """
         #23426 - RunSQL should accept parameters.