diff options
| author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
| commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
| tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/gis_tests | |
| parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/gis_tests')
| -rw-r--r-- | tests/gis_tests/gdal_tests/test_raster.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/geoadmin/tests.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/geoapp/tests.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/gis_migrations/test_commands.py | 10 | ||||
| -rw-r--r-- | tests/gis_tests/layermap/tests.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/test_geoforms.py | 1 | ||||
| -rw-r--r-- | tests/gis_tests/tests.py | 4 |
7 files changed, 10 insertions, 13 deletions
diff --git a/tests/gis_tests/gdal_tests/test_raster.py b/tests/gis_tests/gdal_tests/test_raster.py index 8137aeaeb0..53f1bf985a 100644 --- a/tests/gis_tests/gdal_tests/test_raster.py +++ b/tests/gis_tests/gdal_tests/test_raster.py @@ -345,7 +345,7 @@ class GDALBandTests(SimpleTestCase): self.assertAlmostEqual(self.band.mean, 2.828326634228898) self.assertAlmostEqual(self.band.std, 2.4260526986669095) - # Check that statistics are persisted into PAM file on band close + # Statistics are persisted into PAM file on band close self.band = None self.assertTrue(os.path.isfile(pam_file)) finally: diff --git a/tests/gis_tests/geoadmin/tests.py b/tests/gis_tests/geoadmin/tests.py index 2658ef32e8..88c3934020 100644 --- a/tests/gis_tests/geoadmin/tests.py +++ b/tests/gis_tests/geoadmin/tests.py @@ -55,7 +55,7 @@ class GeoAdminTest(TestCase): def test_olwidget_has_changed(self): """ - Check that changes are accurately noticed by OpenLayersWidget. + Changes are accurately noticed by OpenLayersWidget. """ geoadmin = site._registry[City] form = geoadmin.get_changelist_form(None)() diff --git a/tests/gis_tests/geoapp/tests.py b/tests/gis_tests/geoapp/tests.py index cb7d9bd884..d64ab24b4c 100644 --- a/tests/gis_tests/geoapp/tests.py +++ b/tests/gis_tests/geoapp/tests.py @@ -877,7 +877,7 @@ class GeoQuerySetTest(TestCase): def test_within_subquery(self): """ - Test that using a queryset inside a geo lookup is working (using a subquery) + Using a queryset inside a geo lookup is working (using a subquery) (#14483). """ tex_cities = City.objects.filter( diff --git a/tests/gis_tests/gis_migrations/test_commands.py b/tests/gis_tests/gis_migrations/test_commands.py index b9efc2c39c..65bd035b8c 100644 --- a/tests/gis_tests/gis_migrations/test_commands.py +++ b/tests/gis_tests/gis_migrations/test_commands.py @@ -27,15 +27,13 @@ class MigrateTests(TransactionTestCase): def test_migrate_gis(self): """ Tests basic usage of the migrate command when a model uses Geodjango - fields. Regression test for ticket #22001: - https://code.djangoproject.com/ticket/22001 + fields (#22001). It's also used to showcase an error in migrations where spatialite is enabled and geo tables are renamed resulting in unique constraint - failure on geometry_columns. Regression for ticket #23030: - https://code.djangoproject.com/ticket/23030 + failure on geometry_columns (#23030). """ - # Make sure the right tables exist + # The right tables exist self.assertTableExists("gis_migrations_neighborhood") self.assertTableExists("gis_migrations_household") self.assertTableExists("gis_migrations_family") @@ -43,7 +41,7 @@ class MigrateTests(TransactionTestCase): self.assertTableExists("gis_migrations_heatmap") # Unmigrate everything call_command("migrate", "gis_migrations", "zero", verbosity=0) - # Make sure it's all gone + # All tables are gone self.assertTableNotExists("gis_migrations_neighborhood") self.assertTableNotExists("gis_migrations_household") self.assertTableNotExists("gis_migrations_family") diff --git a/tests/gis_tests/layermap/tests.py b/tests/gis_tests/layermap/tests.py index c57ba47f32..a8a352eda5 100644 --- a/tests/gis_tests/layermap/tests.py +++ b/tests/gis_tests/layermap/tests.py @@ -304,7 +304,7 @@ class LayerMapTest(TestCase): lm.save(silent=True, strict=True) def test_textfield(self): - "Tests that String content fits also in a TextField" + "String content fits also in a TextField" mapping = copy(city_mapping) mapping['name_txt'] = 'Name' lm = LayerMapping(City, city_shp, mapping) diff --git a/tests/gis_tests/test_geoforms.py b/tests/gis_tests/test_geoforms.py index f4b6e299b5..8c6bc2a56a 100644 --- a/tests/gis_tests/test_geoforms.py +++ b/tests/gis_tests/test_geoforms.py @@ -369,5 +369,4 @@ class CustomGeometryWidgetTest(SimpleTestCase): form = PointForm(data={'p': point.json}) self.assertTrue(form.is_valid()) - # Ensure that resulting geometry has srid set self.assertEqual(form.cleaned_data['p'].srid, 4326) diff --git a/tests/gis_tests/tests.py b/tests/gis_tests/tests.py index 1ee3a56a16..65526d0cb8 100644 --- a/tests/gis_tests/tests.py +++ b/tests/gis_tests/tests.py @@ -47,9 +47,9 @@ if HAS_POSTGRES: @unittest.skipUnless(HAS_POSTGRES, "The psycopg2 driver is needed for these tests") -class TestPostgisVersionCheck(unittest.TestCase): +class TestPostGISVersionCheck(unittest.TestCase): """ - Tests that the postgis version check parses correctly the version numbers + The PostGIS version check parses correctly the version numbers """ def test_get_version(self): |
