mirror of https://github.com/django/django.git
Fixed typos in comments and a test name.
This commit is contained in:
parent
fc1182af01
commit
9f11939dd1
|
@ -6,7 +6,7 @@ from django.db.backends.sqlite3.introspection import (
|
||||||
|
|
||||||
class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
|
class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
|
||||||
"""
|
"""
|
||||||
Sublcass that includes updates the `base_data_types_reverse` dict
|
Subclass that includes updates the `base_data_types_reverse` dict
|
||||||
for geometry field types.
|
for geometry field types.
|
||||||
"""
|
"""
|
||||||
base_data_types_reverse = {
|
base_data_types_reverse = {
|
||||||
|
|
|
@ -105,7 +105,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_sigint_handler(self):
|
def test_sigint_handler(self):
|
||||||
"""SIGINT is ignored in Python and passed to psql to abort quries."""
|
"""SIGINT is ignored in Python and passed to psql to abort queries."""
|
||||||
def _mock_subprocess_run(*args, **kwargs):
|
def _mock_subprocess_run(*args, **kwargs):
|
||||||
handler = signal.getsignal(signal.SIGINT)
|
handler = signal.getsignal(signal.SIGINT)
|
||||||
self.assertEqual(handler, signal.SIG_IGN)
|
self.assertEqual(handler, signal.SIG_IGN)
|
||||||
|
|
|
@ -202,7 +202,7 @@ class BigChildDeferTests(AssertionMixin, TestCase):
|
||||||
self.assertEqual(obj.value, "foo")
|
self.assertEqual(obj.value, "foo")
|
||||||
self.assertEqual(obj.other, "bar")
|
self.assertEqual(obj.other, "bar")
|
||||||
|
|
||||||
def test_only_sublcass(self):
|
def test_only_subclass(self):
|
||||||
# You can retrieve a single field on a subclass
|
# You can retrieve a single field on a subclass
|
||||||
obj = BigChild.objects.only("other").get(name="b1")
|
obj = BigChild.objects.only("other").get(name="b1")
|
||||||
self.assert_delayed(obj, 4)
|
self.assert_delayed(obj, 4)
|
||||||
|
|
|
@ -56,7 +56,7 @@ class TestNumberFormat(SimpleTestCase):
|
||||||
|
|
||||||
def test_float_numbers(self):
|
def test_float_numbers(self):
|
||||||
# A float without a fractional part (3.) results in a ".0" when no
|
# A float without a fractional part (3.) results in a ".0" when no
|
||||||
# deimal_pos is given. Contrast that with the Decimal('3.') case in
|
# decimal_pos is given. Contrast that with the Decimal('3.') case in
|
||||||
# test_decimal_numbers which doesn't return a fractional part.
|
# test_decimal_numbers which doesn't return a fractional part.
|
||||||
self.assertEqual(nformat(3., '.'), '3.0')
|
self.assertEqual(nformat(3., '.'), '3.0')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue