mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
parent
f6acd1d271
commit
7b2f2e74ad
213 changed files with 574 additions and 763 deletions
|
@ -2,7 +2,6 @@ from django.apps import apps
|
|||
from django.db import models
|
||||
from django.test import SimpleTestCase, override_settings
|
||||
from django.test.utils import isolate_lru_cache
|
||||
from django.utils import six
|
||||
|
||||
|
||||
class FieldDeconstructionTests(SimpleTestCase):
|
||||
|
@ -21,7 +20,6 @@ class FieldDeconstructionTests(SimpleTestCase):
|
|||
field.set_attributes_from_name("is_awesome_test")
|
||||
name, path, args, kwargs = field.deconstruct()
|
||||
self.assertEqual(name, "is_awesome_test")
|
||||
self.assertIsInstance(name, six.text_type)
|
||||
# Now try with a ForeignKey
|
||||
field = models.ForeignKey("some_fake.ModelName", models.CASCADE)
|
||||
name, path, args, kwargs = field.deconstruct()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue