mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
Refs #32956 -- Corrected usage of "insure" and "assure".
This commit is contained in:
parent
74a86e9b5e
commit
6802ac4415
@ -58,7 +58,7 @@ class SpatialProxy(DeferredAttribute):
|
|||||||
gtype = self.field.geom_type
|
gtype = self.field.geom_type
|
||||||
|
|
||||||
if gtype == 'RASTER' and (value is None or isinstance(value, (str, dict, self._klass))):
|
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.
|
# raster instance.
|
||||||
pass
|
pass
|
||||||
elif isinstance(value, self._klass):
|
elif isinstance(value, self._klass):
|
||||||
|
@ -33,10 +33,7 @@ class RemoteUserTest(TestCase):
|
|||||||
self.patched_settings.disable()
|
self.patched_settings.disable()
|
||||||
|
|
||||||
def test_no_remote_user(self):
|
def test_no_remote_user(self):
|
||||||
"""
|
"""Users are not created when remote user is not specified."""
|
||||||
Tests requests where no remote user is specified and insures that no
|
|
||||||
users get created.
|
|
||||||
"""
|
|
||||||
num_users = User.objects.count()
|
num_users = User.objects.count()
|
||||||
|
|
||||||
response = self.client.get('/remote_user/')
|
response = self.client.get('/remote_user/')
|
||||||
|
@ -228,9 +228,7 @@ class RawQueryTests(TestCase):
|
|||||||
self.assertSuccessfulRawQuery(Reviewer, query, reviewers)
|
self.assertSuccessfulRawQuery(Reviewer, query, reviewers)
|
||||||
|
|
||||||
def test_extra_conversions(self):
|
def test_extra_conversions(self):
|
||||||
"""
|
"""Extra translations are ignored."""
|
||||||
Test to insure that extra translations are ignored.
|
|
||||||
"""
|
|
||||||
query = "SELECT * FROM raw_query_author"
|
query = "SELECT * FROM raw_query_author"
|
||||||
translations = {'something': 'else'}
|
translations = {'something': 'else'}
|
||||||
authors = Author.objects.all()
|
authors = Author.objects.all()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user