瀏覽代碼

Refs #32234 -- Removed hardcoded IntegerField in inspectdb test.

Tim Graham 2 年之前
父節點
當前提交
9a3b7e5e2b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/inspectdb/tests.py

+ 2 - 1
tests/inspectdb/tests.py

@@ -608,7 +608,8 @@ class InspectDBTransactionalTests(TransactionTestCase):
                 output,
             )
             self.assertIn(
-                "column_2 = models.IntegerField()",
+                "column_2 = models.%s()"
+                % connection.features.introspected_field_types["IntegerField"],
                 output,
             )
         finally: