From 97ccab126cb395f3ed5d31ebb37995dcbe27329f Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 1 Apr 2016 15:51:16 +0200 Subject: [PATCH] [1.9.x] Refs #25532 -- Removed a failing test on Django 1.9 That test is failing on Django 1.9, that issue has been fixed on master only as it touches a part of form validation that is too important to touch for a stable release. --- tests/postgres_tests/test_json.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/postgres_tests/test_json.py b/tests/postgres_tests/test_json.py index 11b6a349aa..9e24303465 100644 --- a/tests/postgres_tests/test_json.py +++ b/tests/postgres_tests/test_json.py @@ -260,14 +260,6 @@ class TestFormField(PostgreSQLTestCase): form_field = model_field.formfield() self.assertIsInstance(form_field, forms.JSONField) - def test_formfield_disabled(self): - class JsonForm(Form): - name = CharField() - jfield = forms.JSONField(disabled=True) - - form = JsonForm({'name': 'xyz', 'jfield': '["bar"]'}, initial={'jfield': ['foo']}) - self.assertIn('["foo"]', form.as_p()) - def test_prepare_value(self): field = forms.JSONField() self.assertEqual(field.prepare_value({'a': 'b'}), '{"a": "b"}')