summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-26 12:45:07 +0100
committerGitHub <noreply@github.com>2024-01-26 12:45:07 +0100
commit305757aec19c9d5111e4d76095ae0acd66163e4b (patch)
tree04aa017e66c06b3b19cb466ed4e1d73cd871523d /tests/gis_tests
parent3f6d939c62efd967f548c27a265748cc2cc47ca5 (diff)
Applied Black's 2024 stable style.
https://github.com/psf/black/releases/tag/24.1.0
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/gdal_tests/test_raster.py5
-rw-r--r--tests/gis_tests/geogapp/tests.py1
-rw-r--r--tests/gis_tests/test_data.py1
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/gis_tests/gdal_tests/test_raster.py b/tests/gis_tests/gdal_tests/test_raster.py
index 67108cbb32..a5f1edef0b 100644
--- a/tests/gis_tests/gdal_tests/test_raster.py
+++ b/tests/gis_tests/gdal_tests/test_raster.py
@@ -102,8 +102,9 @@ class GDALRasterTests(SimpleTestCase):
]
msg = "Geotransform must consist of 6 numeric values."
for geotransform in error_geotransforms:
- with self.subTest(i=geotransform), self.assertRaisesMessage(
- ValueError, msg
+ with (
+ self.subTest(i=geotransform),
+ self.assertRaisesMessage(ValueError, msg),
):
rsmem.geotransform = geotransform
diff --git a/tests/gis_tests/geogapp/tests.py b/tests/gis_tests/geogapp/tests.py
index 8565608993..cb783b9465 100644
--- a/tests/gis_tests/geogapp/tests.py
+++ b/tests/gis_tests/geogapp/tests.py
@@ -1,6 +1,7 @@
"""
Tests for geography support in PostGIS
"""
+
import os
from django.contrib.gis.db import models
diff --git a/tests/gis_tests/test_data.py b/tests/gis_tests/test_data.py
index 0a94907320..8dd6042175 100644
--- a/tests/gis_tests/test_data.py
+++ b/tests/gis_tests/test_data.py
@@ -2,6 +2,7 @@
This module has the mock object definitions used to hold reference geometry
for the GEOS and GDAL tests.
"""
+
import json
import os