From 42b9a23267f14be39b9b00958e18d5746783208e Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 27 Jun 2019 09:39:47 -0700 Subject: Fixed #30400 -- Improved typography of user facing strings. Thanks Claude Paroz for assistance with translations. --- tests/postgres_tests/test_hstore.py | 2 +- tests/postgres_tests/test_json.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/postgres_tests') diff --git a/tests/postgres_tests/test_hstore.py b/tests/postgres_tests/test_hstore.py index 1d7403fb20..4c8f787de6 100644 --- a/tests/postgres_tests/test_hstore.py +++ b/tests/postgres_tests/test_hstore.py @@ -251,7 +251,7 @@ class TestValidation(PostgreSQLSimpleTestCase): with self.assertRaises(exceptions.ValidationError) as cm: field.clean({'a': 1}, None) self.assertEqual(cm.exception.code, 'not_a_string') - self.assertEqual(cm.exception.message % cm.exception.params, 'The value of "a" is not a string or null.') + self.assertEqual(cm.exception.message % cm.exception.params, 'The value of “a” is not a string or null.') def test_none_allowed_as_value(self): field = HStoreField() diff --git a/tests/postgres_tests/test_json.py b/tests/postgres_tests/test_json.py index ee0bb6d5ea..4a67d177a8 100644 --- a/tests/postgres_tests/test_json.py +++ b/tests/postgres_tests/test_json.py @@ -426,7 +426,7 @@ class TestFormField(PostgreSQLSimpleTestCase): field = forms.JSONField() with self.assertRaises(exceptions.ValidationError) as cm: field.clean('{some badly formed: json}') - self.assertEqual(cm.exception.messages[0], "'{some badly formed: json}' value must be valid JSON.") + self.assertEqual(cm.exception.messages[0], '“{some badly formed: json}” value must be valid JSON.') def test_formfield(self): model_field = JSONField() -- cgit v1.3