diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-06-27 09:39:47 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-06-28 16:46:18 +0200 |
| commit | 42b9a23267f14be39b9b00958e18d5746783208e (patch) | |
| tree | f19f6a2cd70025744ad9d668a15a0c0a5ed8aac3 /tests/model_forms | |
| parent | 2b03e8e9e8205ae3a3aa128764277e70b7c30803 (diff) | |
Fixed #30400 -- Improved typography of user facing strings.
Thanks Claude Paroz for assistance with translations.
Diffstat (limited to 'tests/model_forms')
| -rw-r--r-- | tests/model_forms/test_uuid.py | 2 | ||||
| -rw-r--r-- | tests/model_forms/tests.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/model_forms/test_uuid.py b/tests/model_forms/test_uuid.py index 1c566efcd8..a0d59c3d03 100644 --- a/tests/model_forms/test_uuid.py +++ b/tests/model_forms/test_uuid.py @@ -29,5 +29,5 @@ class ModelFormBaseTest(TestCase): def test_model_multiple_choice_field_uuid_pk(self): f = forms.ModelMultipleChoiceField(UUIDPK.objects.all()) - with self.assertRaisesMessage(ValidationError, "'invalid_uuid' is not a valid UUID."): + with self.assertRaisesMessage(ValidationError, '“invalid_uuid” is not a valid UUID.'): f.clean(['invalid_uuid']) diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 42b9cf2c45..e264b6df77 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -1358,7 +1358,7 @@ class ModelFormBasicTests(TestCase): self.assertEqual(f.errors['name'], ['This field is required.']) self.assertEqual( f.errors['slug'], - ["Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."] + ['Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.'] ) self.assertEqual(f.cleaned_data, {'url': 'foo'}) msg = "The Category could not be created because the data didn't validate." |
