MCPcopy
hub / github.com/django/django / test_gis_query_as_string

Method test_gis_query_as_string

tests/gis_tests/geoapp/tests.py:220–226  ·  view source on GitHub ↗

GIS queries can be represented as strings.

(self)

Source from the content-addressed store, hash-verified

218 self.assertIsInstance(cities2[0].point, Point)
219
220 def test_gis_query_as_string(self):
221 """GIS queries can be represented as strings."""
222 query = City.objects.filter(point__within=Polygon.from_bbox((0, 0, 2, 2)))
223 self.assertIn(
224 connection.ops.quote_name(City._meta.db_table),
225 str(query.query),
226 )
227
228 def test_dumpdata_loaddata_cycle(self):
229 """

Callers

nothing calls this directly

Calls 3

filterMethod · 0.45
from_bboxMethod · 0.45
quote_nameMethod · 0.45

Tested by

no test coverage detected