Refs #32956 -- Corrected usage of "insure" and "assure".

This commit is contained in:
David Smith 2021-08-02 06:45:26 +01:00 committed by GitHub
parent 74a86e9b5e
commit 6802ac4415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 8 deletions

View File

@ -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):

View File

@ -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/')

View File

@ -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()