mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.
This commit is contained in:
@@ -6,11 +6,10 @@ from decimal import Decimal
|
||||
|
||||
from django.db.models.fields import (
|
||||
AutoField, BigIntegerField, BinaryField, BooleanField, CharField,
|
||||
CommaSeparatedIntegerField, DateField, DateTimeField, DecimalField,
|
||||
EmailField, FilePathField, FloatField, GenericIPAddressField, IntegerField,
|
||||
IPAddressField, NullBooleanField, PositiveIntegerField,
|
||||
PositiveSmallIntegerField, SlugField, SmallIntegerField, TextField,
|
||||
TimeField, URLField,
|
||||
DateField, DateTimeField, DecimalField, EmailField, FilePathField,
|
||||
FloatField, GenericIPAddressField, IntegerField, IPAddressField,
|
||||
NullBooleanField, PositiveIntegerField, PositiveSmallIntegerField,
|
||||
SlugField, SmallIntegerField, TextField, TimeField, URLField,
|
||||
)
|
||||
from django.db.models.fields.files import FileField, ImageField
|
||||
from django.test import SimpleTestCase
|
||||
@@ -43,12 +42,6 @@ class PromiseTest(SimpleTestCase):
|
||||
lazy_func = lazy(lambda: 0, int)
|
||||
self.assertIsInstance(CharField().get_prep_value(lazy_func()), six.text_type)
|
||||
|
||||
def test_CommaSeparatedIntegerField(self):
|
||||
lazy_func = lazy(lambda: '1,2', six.text_type)
|
||||
self.assertIsInstance(CommaSeparatedIntegerField().get_prep_value(lazy_func()), six.text_type)
|
||||
lazy_func = lazy(lambda: 0, int)
|
||||
self.assertIsInstance(CommaSeparatedIntegerField().get_prep_value(lazy_func()), six.text_type)
|
||||
|
||||
def test_DateField(self):
|
||||
lazy_func = lazy(lambda: datetime.date.today(), datetime.date)
|
||||
self.assertIsInstance(DateField().get_prep_value(lazy_func()), datetime.date)
|
||||
|
||||
Reference in New Issue
Block a user