MCPcopy
hub / github.com/django/django / test_invalid_layer

Method test_invalid_layer

tests/gis_tests/layermap/tests.py:319–323  ·  view source on GitHub ↗

Tests LayerMapping on invalid geometries. See #15378.

(self)

Source from the content-addressed store, hash-verified

317 self.assertEqual(3, ICity2.objects.count())
318
319 def test_invalid_layer(self):
320 "Tests LayerMapping on invalid geometries. See #15378."
321 invalid_mapping = {"point": "POINT"}
322 lm = LayerMapping(Invalid, invalid_shp, invalid_mapping, source_srs=4326)
323 lm.save(silent=True)
324
325 def test_charfield_too_short(self):
326 mapping = copy(city_mapping)

Callers

nothing calls this directly

Calls 2

saveMethod · 0.95
LayerMappingClass · 0.90

Tested by

no test coverage detected