Przeglądaj źródła

Skip another test if sqlparse is not available

Refs #23426
Collin Anderson 10 lat temu
rodzic
commit
d6a87eefd8
1 zmienionych plików z 1 dodań i 0 usunięć
  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.