diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-04-01 15:51:16 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-04-01 15:51:16 +0200 |
| commit | 97ccab126cb395f3ed5d31ebb37995dcbe27329f (patch) | |
| tree | 435d9390c0e59a86d494408f227a2c97637fafc6 /tests/postgres_tests/test_json.py | |
| parent | 6a8ba2eef45ccc3022c88510bffd29734d71c39e (diff) | |
[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.
Diffstat (limited to 'tests/postgres_tests/test_json.py')
| -rw-r--r-- | tests/postgres_tests/test_json.py | 8 |
1 files changed, 0 insertions, 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"]</textarea>', form.as_p()) - def test_prepare_value(self): field = forms.JSONField() self.assertEqual(field.prepare_value({'a': 'b'}), '{"a": "b"}') |
