summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-03 11:20:46 +0100
committerGitHub <noreply@github.com>2022-02-03 11:20:46 +0100
commitc5cd8783825b5f6384417dac5f3889b4210b7d08 (patch)
tree3d4689aaa0e209e40d2d8df09edad7e155960b45 /tests/gis_tests
parentc9d6e3595cfd0aa58cde1656bd735ecfcd7a872b (diff)
downloaddjango-c5cd8783825b5f6384417dac5f3889b4210b7d08.tar.gz
Refs #33476 -- Refactored problematic code before reformatting by Black.
In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/geoapp/test_functions.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py
index a1b1f48e02..67e4313f3f 100644
--- a/tests/gis_tests/geoapp/test_functions.py
+++ b/tests/gis_tests/geoapp/test_functions.py
@@ -370,8 +370,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
@skipUnlessDBFeature('has_MakeValid_function')
def test_make_valid_multipolygon(self):
invalid_geom = fromstr(
- 'POLYGON((0 0, 0 1 , 1 1 , 1 0, 0 0), '
- '(10 0, 10 1, 11 1, 11 0, 10 0))'
+ 'POLYGON((0 0, 0 1 , 1 1 , 1 0, 0 0), (10 0, 10 1, 11 1, 11 0, 10 0))'
)
State.objects.create(name='invalid', poly=invalid_geom)
invalid = State.objects.filter(name='invalid').annotate(