summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2014-11-22 18:57:13 +0100
committerTim Graham <timograham@gmail.com>2014-11-28 06:05:56 -0500
commit912ad03226687dae91971ebd7e5cf87521f6b0de (patch)
treec5e6f6650f7de1d29a3ab45f590688c6e28e362b /tests/postgres_tests/test_array.py
parente023ceb453c02e271d00f9ac25e154b7be712bb0 (diff)
Fixed #23894 -- Made deconstruct methods favor kwargs over args
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r--tests/postgres_tests/test_array.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py
index 68378483ec..10917153df 100644
--- a/tests/postgres_tests/test_array.py
+++ b/tests/postgres_tests/test_array.py
@@ -6,7 +6,6 @@ from django.contrib.postgres.forms import SimpleArrayField, SplitArrayField
from django.core import exceptions, serializers
from django.core.management import call_command
from django.db import models, IntegrityError, connection
-from django.db.migrations.writer import MigrationWriter
from django import forms
from django.test import TestCase, override_settings
from django.utils import timezone
@@ -229,11 +228,6 @@ class TestMigrations(TestCase):
new = ArrayField(*args, **kwargs)
self.assertEqual(new.base_field.max_length, field.base_field.max_length)
- def test_makemigrations(self):
- field = ArrayField(models.CharField(max_length=20))
- statement, imports = MigrationWriter.serialize(field)
- self.assertEqual(statement, 'django.contrib.postgres.fields.ArrayField(models.CharField(max_length=20), size=None)')
-
@override_settings(MIGRATION_MODULES={
"postgres_tests": "postgres_tests.array_default_migrations",
})