summaryrefslogtreecommitdiff
path: root/tests/invalid_models_tests/test_ordinary_fields.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2014-01-20 12:31:35 +0800
committerRussell Keith-Magee <russell@keith-magee.com>2014-01-20 12:31:35 +0800
commita029efca446025427a12ed886484890be15329d4 (patch)
tree3f3b8dae1369a28d42a4adcfcf8433eeef8f37d6 /tests/invalid_models_tests/test_ordinary_fields.py
parentbe8173af513dfb86edf8fc2fd981cc9ce101229e (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.py16
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')