GIS queries can be represented as strings.
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected