From fbb1984046ae00bdf0b894a6b63294395da1cce8 Mon Sep 17 00:00:00 2001 From: David Smith <39445562+smithdc1@users.noreply.github.com> Date: Fri, 30 Jul 2021 19:34:50 +0100 Subject: Refs #32956 -- Updated words ending in -wards. AP styleguide: Virtually none of the words ending with -wards end with an s. --- tests/forms_tests/field_tests/test_decimalfield.py | 2 +- tests/gis_tests/rasterapp/test_rasterfield.py | 4 +-- tests/shell/tests.py | 2 +- tests/utils_tests/files/strip_tags1.html | 32 +++++++++++----------- 4 files changed, 20 insertions(+), 20 deletions(-) (limited to 'tests') diff --git a/tests/forms_tests/field_tests/test_decimalfield.py b/tests/forms_tests/field_tests/test_decimalfield.py index df5b9052b2..f58c678176 100644 --- a/tests/forms_tests/field_tests/test_decimalfield.py +++ b/tests/forms_tests/field_tests/test_decimalfield.py @@ -103,7 +103,7 @@ class DecimalFieldTest(FormFieldAssertionsMixin, SimpleTestCase): f = DecimalField(max_digits=3) # Leading whole zeros "collapse" to one digit. self.assertEqual(f.clean('0000000.10'), decimal.Decimal("0.1")) - # But a leading 0 before the . doesn't count towards max_digits + # But a leading 0 before the . doesn't count toward max_digits self.assertEqual(f.clean('0000000.100'), decimal.Decimal("0.100")) # Only leading whole zeros "collapse" to one digit. self.assertEqual(f.clean('000000.02'), decimal.Decimal('0.02')) diff --git a/tests/gis_tests/rasterapp/test_rasterfield.py b/tests/gis_tests/rasterapp/test_rasterfield.py index 306bb85b19..6981fcebc4 100644 --- a/tests/gis_tests/rasterapp/test_rasterfield.py +++ b/tests/gis_tests/rasterapp/test_rasterfield.py @@ -329,12 +329,12 @@ class RasterFieldTest(TransactionTestCase): def test_lookup_with_raster_bbox(self): rast = GDALRaster(json.loads(JSON_RASTER)) - # Shift raster upwards + # Shift raster upward rast.origin.y = 2 # The raster in the model is not strictly below qs = RasterModel.objects.filter(rast__strictly_below=rast) self.assertEqual(qs.count(), 0) - # Shift raster further upwards + # Shift raster further upward rast.origin.y = 6 # The raster in the model is strictly below qs = RasterModel.objects.filter(rast__strictly_below=rast) diff --git a/tests/shell/tests.py b/tests/shell/tests.py index d861b5599b..df32562f6b 100644 --- a/tests/shell/tests.py +++ b/tests/shell/tests.py @@ -89,5 +89,5 @@ class ShellCommandTestCase(SimpleTestCase): # in parallel mode. The tests are run in a subprocess and the subprocess's # stdin is closed and replaced by /dev/null. Reading from /dev/null always # returns EOF and so select always shows that sys.stdin is ready to read. - # This causes problems because of the call to select.select() towards the + # This causes problems because of the call to select.select() toward the # end of shell's handle() method. diff --git a/tests/utils_tests/files/strip_tags1.html b/tests/utils_tests/files/strip_tags1.html index 606e134ce1..fed6844774 100644 --- a/tests/utils_tests/files/strip_tags1.html +++ b/tests/utils_tests/files/strip_tags1.html @@ -61,7 +61,7 @@
- +
@@ -69,11 +69,11 @@
- + - + @@ -99,19 +99,19 @@
  • - +
  • - +
  • @@ -207,11 +207,11 @@
  • - + Unstar - + Star @@ -219,7 +219,7 @@
  • - + Fork @@ -701,7 +701,7 @@
    1. - + 2  @@ -710,7 +710,7 @@
    2. - + 1  @@ -725,7 +725,7 @@
      - 2  + 2  django/utils/html.py @@ -863,7 +863,7 @@
      - 1  + 1  tests/regressiontests/utils/html.py @@ -1024,7 +1024,7 @@
      + leftward " title="Zen Mode"> @@ -1275,10 +1275,10 @@
      - + - -- cgit v1.3