From 6802ac4415d6ebf9500df47dc22727a1d1b569d1 Mon Sep 17 00:00:00 2001 From: David Smith <39445562+smithdc1@users.noreply.github.com> Date: Mon, 2 Aug 2021 06:45:26 +0100 Subject: [PATCH] Refs #32956 -- Corrected usage of "insure" and "assure". --- django/contrib/gis/db/models/proxy.py | 2 +- tests/auth_tests/test_remote_user.py | 5 +---- tests/raw_query/tests.py | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/django/contrib/gis/db/models/proxy.py b/django/contrib/gis/db/models/proxy.py index adf2bae1e5..07b26e9910 100644 --- a/django/contrib/gis/db/models/proxy.py +++ b/django/contrib/gis/db/models/proxy.py @@ -58,7 +58,7 @@ class SpatialProxy(DeferredAttribute): gtype = self.field.geom_type if gtype == 'RASTER' and (value is None or isinstance(value, (str, dict, self._klass))): - # For raster fields, assure input is None or a string, dict, or + # For raster fields, ensure input is None or a string, dict, or # raster instance. pass elif isinstance(value, self._klass): diff --git a/tests/auth_tests/test_remote_user.py b/tests/auth_tests/test_remote_user.py index ee1f2e1cdf..3756f557a2 100644 --- a/tests/auth_tests/test_remote_user.py +++ b/tests/auth_tests/test_remote_user.py @@ -33,10 +33,7 @@ class RemoteUserTest(TestCase): self.patched_settings.disable() def test_no_remote_user(self): - """ - Tests requests where no remote user is specified and insures that no - users get created. - """ + """Users are not created when remote user is not specified.""" num_users = User.objects.count() response = self.client.get('/remote_user/') diff --git a/tests/raw_query/tests.py b/tests/raw_query/tests.py index cf57cfd696..802b06a30b 100644 --- a/tests/raw_query/tests.py +++ b/tests/raw_query/tests.py @@ -228,9 +228,7 @@ class RawQueryTests(TestCase): self.assertSuccessfulRawQuery(Reviewer, query, reviewers) def test_extra_conversions(self): - """ - Test to insure that extra translations are ignored. - """ + """Extra translations are ignored.""" query = "SELECT * FROM raw_query_author" translations = {'something': 'else'} authors = Author.objects.all()