diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2014-01-20 12:31:35 +0800 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2014-01-20 12:31:35 +0800 |
| commit | a029efca446025427a12ed886484890be15329d4 (patch) | |
| tree | 3f3b8dae1369a28d42a4adcfcf8433eeef8f37d6 /tests/invalid_models_tests/test_ordinary_fields.py | |
| parent | be8173af513dfb86edf8fc2fd981cc9ce101229e (diff) | |
Removed an inactive system check for upload_to.
Thanks to Simon Charette for the eagle eyes.
Diffstat (limited to 'tests/invalid_models_tests/test_ordinary_fields.py')
| -rw-r--r-- | tests/invalid_models_tests/test_ordinary_fields.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index 9db8c95ce7..d14b907cdb 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -302,22 +302,6 @@ class FileFieldTests(IsolatedModelsTestCase): expected = [] self.assertEqual(errors, expected) - # def test_missing_upload_to(self): - # class Model(models.Model): - # field = models.FileField() - - # field = Model._meta.get_field('field') - # errors = field.check() - # expected = [ - # Error( - # 'The field requires an "upload_to" attribute.', - # hint=None, - # obj=field, - # id='E031', - # ), - # ] - # self.assertEqual(errors, expected) - def test_unique(self): class Model(models.Model): field = models.FileField(unique=False, upload_to='somewhere') |
