diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-31 10:30:41 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-17 20:52:02 -0500 |
| commit | bcf3532ede16407f1a701717deaed835eda3e87b (patch) | |
| tree | d4b6167d5c47c42fcae8f05dd86b03adb7faa33c /tests/model_fields/test_promises.py | |
| parent | bc3540ce2c7cc59ec39a23ed16b14cc12f485bf3 (diff) | |
Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.
Diffstat (limited to 'tests/model_fields/test_promises.py')
| -rw-r--r-- | tests/model_fields/test_promises.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/model_fields/test_promises.py b/tests/model_fields/test_promises.py index c1b476e75e..65d1b7ec99 100644 --- a/tests/model_fields/test_promises.py +++ b/tests/model_fields/test_promises.py @@ -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) |
